Incompatibility between Spring Boot 2.2.8.RELEASE and Spring-Cloud Hoxton.SR6
See original GitHub issueWhen configuring a spring-cloud-stream-binder-kafka project for kafka’s broker with SB 2.2.8.RELEASE and spring-cloud Hoxton.SR6, I have the following exception in runtime (full stack-trace):
java.lang.reflect.InvocationTargetException at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:564) at java.lang.Thread.run (Thread.java:834) Caused by: org.springframework.context.ApplicationContextException: Failed to start bean ‘outputBindingLifecycle’; nested exception is java.lang.NoSuchMethodError: 'void org.springframework.kafka.core.DefaultKafkaProducerFactory.setBeanName(java.lang.String)
Looks like the spring-kafka version is unbalanced:
[INFO] +- org.springframework.cloud:spring-cloud-stream-binder-kafka:jar:3.0.6.RELEASE:compile
[INFO] +- org.springframework.kafka:spring-kafka:jar:2.3.9.RELEASE:compile
The method org.springframework.kafka.core.DefaultKafkaProducerFactory.setBeanName(java.lang.String) appears from version org.springframework.kafka:spring-kafka:jar:2.5.0.RC1.
Does Spring Cloud Hoxton.SR6 not support SB 2.2.8.RELEASE?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)

Top Related StackOverflow Question
This page indicates that 2.2.9 is planned to be released July 23, https://github.com/spring-projects/spring-boot/milestones.
This capability will be restored with Boot 2.2.9; sorry for the inconvenience.