Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Startup error on including java-spring-jaeger dependency #143

Open
abhinavmanohar opened this issue Apr 26, 2022 · 0 comments
Open

Comments

@abhinavmanohar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant