Getting Exception java.lang.NoSuchMethodError: 'io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig io.opentelemetry.javaagent.bootstrap.internal.AgentInstrumentationConfig.get()' #13724
-
I'm getting this exception when starting up my Spring Boot 3.4.4 app with Opentelemetry 1.49.0 and the 2.15.0 javaagent. These are my dependencies: implementation platform("io.opentelemetry:opentelemetry-bom:1.49.0") And here's the stack trace I hit when it's initializing Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchMethodError: 'io.opentelemetry.instrumentation.api.incubator.config.internal.InstrumentationConfig io.opentelemetry.javaagent.bootstrap.internal.AgentInstrumentationConfig.get()' [in thread "main"] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Is there a reason you are including the two library dependencies : I was able to reproduce your error and then resolve it by removing those two dependencies. |
Beta Was this translation helpful? Give feedback.
Is there a reason you are including the two library dependencies :
io.opentelemetry.instrumentation:opentelemetry-aws-sdk-2.2:2.15.0-alpha
andio.opentelemetry.instrumentation:opentelemetry-aws-sdk-2.2-autoconfigure:2.15.0-alpha
? I believe those wouldn't be necessary if you are using the javaagent.I was able to reproduce your error and then resolve it by removing those two dependencies.