-
Notifications
You must be signed in to change notification settings - Fork 94
Description
mvn dependency added in the pom :
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-jaeger-cloud-starter</artifactId>
<version>3.3.1</version>
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:
io.jaegertracing.thrift.internal.senders.ThriftSenderBase.<init>(ThriftSenderBase.java:67)
The following method did not exist:
org.apache.thrift.transport.AutoExpandingBufferWriteTransport.<init>(II)V
The method's class, org.apache.thrift.transport.AutoExpandingBufferWriteTransport, is available from the following locations:
jar:file:<machine-path>/.m2/repository/org/apache/thrift/libthrift/0.9.3/libthrift-0.9.3.jar!/org/apache/thrift/transport/AutoExpandingBufferWriteTransport.class
It was loaded from the following location:
file:/<machine-path>/.m2/repository/org/apache/thrift/libthrift/0.9.3/libthrift-0.9.3.jar
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