question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hoxton.SR4 Kafka Streams and Spring Boot WebFlux 2.2.6 Actuator is not compatible

See original GitHub issue

Hi,

Hoxton.SR4 kafka streams and Spring Boot WebFlux 2.2.6 + Actuator is not compatible where you get the error

Caused by: java.lang.IllegalStateException: Unable to map duplicate endpoint operations: [MBean call 'topology'] to topologyEndpoint
	at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.assertNoDuplicateOperations(EndpointDiscoverer.java:231) ~[spring-boot-actuator-2.2.6.RELEASE.jar:2.2.6.RELEASE]
	at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.convertToEndpoint(EndpointDiscoverer.java:198) ~[spring-boot-actuator-2.2.6.RELEASE.jar:2.2.6.RELEASE]

Downgrading so SR3 is fine. See an example pom.xml with the problem

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.melia</groupId>
	<artifactId>temp2</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>temp2</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<java.version>11</java.version>
		<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
            <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-stream-binder-kafka-streams</artifactId>
        </dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-webflux</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter</artifactId>
		</dependency>

	</dependencies>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sobychackocommented, Oct 22, 2020

This is addressed through this change on 3.0.x: https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/commit/f0bd9f00c2e7132354fff1acf5d5d3e720e07bf8

Same change has been applied to master as well: https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/commit/0a0d3a105708a5dfcd11c7711c3abfc9fea76d2f

@yonigibbs The typo is now fixed.

The next release of Horsham.SR9 (3.0.9) will contain this fix. Thank you! Please feel free to re-open the issue, if anyone still seeing any issues.

2reactions
jmelby70commented, Jul 6, 2020

@sobychacko Even with the fix on 3.0.6 as noted, this is not compatible with spring-boot-actuator 2.3.1. Similar to the original error, I get the following (note MBean call ‘kafkaStreamsTopology’). I am using Spring Cloud Hoxton.SR6 and Spring Boot 2.3.1.RELEASE. The duplicate check appears to be counting the overloaded kafkaStreamsTopology method as a duplicate.

Caused by: java.lang.IllegalStateException: Unable to map duplicate endpoint operations: [MBean call 'kafkaStreamsTopology'] to topologyEndpoint
	at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.assertNoDuplicateOperations(EndpointDiscoverer.java:234)
	at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.convertToEndpoint(EndpointDiscoverer.java:201)
Read more comments on GitHub >

github_iconTop Results From Across the Web

spring-cloud/spring-cloud-stream - Gitter
I want to ensure my application stops consuming Kafka messages when it detects a dependency is down, and therefore sets its own readiness...
Read more >
Spring cloud stream kafka metrics are not shown in actuator ...
I am using SpringBoot 2.2.2.RELEASE, SpringCloud Hoxton.SR4 and spring-cloud-stream-binder-kafka 3.0.4.RELEASE. Any pointers about what am i ...
Read more >
Spring Cloud Stream Kafka Binder Reference Guide
Kafka Streams Properties; 2.3.2. ... In addition, this guide explains the Kafka Streams binding capabilities of ... x.x, native headers are not supported....
Read more >
Spring Boot Apache Kafka Streams - LinkedIn
In this example, we'll learn Spring Boot Apache Kafka streams. pom. ... <java.version>1.8</java.version> <spring-cloud.version>Hoxton.
Read more >
Spring Cloud Stream with Schema Registry and Kafka
On the other hand, it is not possible to easily integrate it with Spring Cloud Stream. Therefore our choice fell on the Confluent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found