Correct the classpath of your application so that it contains a single, compatible version of org.apache.thrift.transport.AutoExpandingBufferWriteTransport
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kafkaProducerPostProcessor' defined in class path resource
[io/opentracing/contrib/spring/cloud/kafka/KafkaAutoConfiguration.class]: Unsatisfied dependency expressed through method 'kafkaProducerPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tracer' defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class]: Unsatisfied dependency expressed through method 'tracer' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reporter' defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.jaegertracing.spi.Reporter]: Factory method 'reporter' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.thrift.transport.AutoExpandingBufferWriteTransport.(II)V
mvn dependency added in the pom :
application.properties:
opentracing.jaeger.udp-sender.host=localhost opentracing.jaeger.udp-sender.port=6831 opentracing.jaeger.log-spans=true opentracing.jaeger.enable-b3-propagation = true opentracing.jaeger.enable-w3c-propagation = true
Error on server startup :
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:
The following method did not exist:
The method's class, org.apache.thrift.transport.AutoExpandingBufferWriteTransport, is available from the following locations:
It was loaded from the following location:
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.apache.thrift.transport.AutoExpandingBufferWriteTransport
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'kafkaProducerPostProcessor' defined in class path resource [io/opentracing/contrib/spring/cloud/kafka/KafkaAutoConfiguration.class]: Unsatisfied dependency expressed through method 'kafkaProducerPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tracer' defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class]: Unsatisfied dependency expressed through method 'tracer' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reporter' defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.jaegertracing.spi.Reporter]: Factory method 'reporter' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.thrift.transport.AutoExpandingBufferWriteTransport.(II)V