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.

Incompatibility between Spring Boot 2.2.8.RELEASE and Spring-Cloud Hoxton.SR6

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
magnus-larssoncommented, Jul 8, 2020

This page indicates that 2.2.9 is planned to be released July 23, https://github.com/spring-projects/spring-boot/milestones.

1reaction
garyrussellcommented, Jul 7, 2020

This capability will be restored with Boot 2.2.9; sorry for the inconvenience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a compatibility matrix of Spring-boot and Spring-cloud?
Here is the release train Spring Boot compatibility table. Below the table, there is a note that the Camden release train builds on...
Read more >
Spring Cloud
The table below outlines which version of Spring Cloud maps to which version of Spring Boot. Table 1. Release train Spring Boot compatibility....
Read more >
spring-cloud/spring-cloud-stream - Gitter
i'm using spring boot 2.3.1.RELEASE and spring.cloud Hoxton.SR6 my .yml file like below spring: cloud: stream: function.definition: sendTestData;receive ...
Read more >
Spring Cloud Hoxton Release Notes - GitHub
Spring Cloud Release Train - dependency management across a wide range of Spring Cloud projects. - Spring Cloud Hoxton Release Notes ...
Read more >
This Month in Spring - June 2020 - VMware Tanzu
Among other things, we also saw the exciting release of Spring Boot 2.3. There are a lot of wonderful features in this release...
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