You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.cloud.stream.binder.kafka.KafkaMessageChannelBinder.createConsumerEndpoint(KafkaMessageChannelBinder.java:716)
The following method did not exist:
'void org.springframework.kafka.listener.ContainerProperties.setAckOnError(boolean)'
The method's class, org.springframework.kafka.listener.ContainerProperties, is available from the following locations:
jar:file:/C:/Users/me/.m2/repository/org/springframework/kafka/spring-kafka/2.7.1/spring-kafka-2.7.1.jar!/org/springframework/kafka/listener/ContainerProperties.class
The class hierarchy was loaded from the following locations:
org.springframework.kafka.listener.ContainerProperties: file:/C:/Users/me/.m2/repository/org/springframework/kafka/spring-kafka/2.7.1/spring-kafka-2.7.1.jar
org.springframework.kafka.listener.ConsumerProperties: file:/C:/Users/me/.m2/repository/org/springframework/kafka/spring-kafka/2.7.1/spring-kafka-2.7.1.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.kafka.listener.ContainerProperties
The text was updated successfully, but these errors were encountered:
Going forward, binder will use the default ack on error settings
in Spring Kafka, which is true by default. If the applicaitons
need to change this behavior, then a custom error handler must
be provided through ListenerContainerCustomizer.
Resolvesspring-cloud#1079
Going forward, binder will use the default ack on error settings
in Spring Kafka, which is true by default. If the applicaitons
need to change this behavior, then a custom error handler must
be provided through ListenerContainerCustomizer.
Resolves#1079
ContainerProperties.setAckOnError(boolean) doesn't exist in spring-kafka:2.7.1 and consumer creation tries to invoke it
Spring Cloud Stream project is generated using: start.spring.io
application.yml:
Consumer creation fails at start up
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'inputBindingLifecycle'; nested exception is java.lang.NoSuchMethodError: 'void org.springframework.kafka.listener.ContainerProperties.setAckOnError(boolean)'
Spring boot parent:
<version>2.5.0-SNAPSHOT</version>
Spring cloud:
<spring-cloud.version>2020.0.3-SNAPSHOT</spring-cloud.version>
As binder I use Kafka:
and it brings to the project spring-kafka:2.7.1
Starting the app:
The text was updated successfully, but these errors were encountered: