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

1.7.1 Java agent throwing exception NoSuchMethodError #4539

Closed
trask opened this issue Oct 28, 2021 Discussed in #4537 · 0 comments · Fixed by #4540
Closed

1.7.1 Java agent throwing exception NoSuchMethodError #4539

trask opened this issue Oct 28, 2021 Discussed in #4537 · 0 comments · Fixed by #4540
Labels
bug Something isn't working

Comments

@trask
Copy link
Member

trask commented Oct 28, 2021

Converting to issue, looks like a bug.

Thx for reporting @pedro-leitao!

Discussed in #4537

Originally posted by pedro-leitao October 28, 2021
Hello,

Currently using 1.7.1, and when creating a metric am getting:

ERROR io.opentelemetry.javaagent.OpenTelemetryAgent
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at io.opentelemetry.javaagent.bootstrap.AgentInitializer.initialize(AgentInitializer.java:40)
at io.opentelemetry.javaagent.OpenTelemetryAgent.agentmain(OpenTelemetryAgent.java:51)
at io.opentelemetry.javaagent.OpenTelemetryAgent.premain(OpenTelemetryAgent.java:44)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.NoSuchMethodError: 'void io.opentelemetry.javaagent.bootstrap.PatchLogger.log(java.util.logging.Level, java.lang.Throwable, java.util.function.Supplier)'
at io.opentelemetry.sdk.metrics.internal.state.MeterSharedState.registerSynchronousMetricStorage(MeterSharedState.java:95)
at io.opentelemetry.sdk.metrics.AbstractInstrumentBuilder.buildSynchronousInstrument(AbstractInstrumentBuilder.java:67)
at io.opentelemetry.sdk.metrics.SdkLongCounter$Builder.build(SdkLongCounter.java:109)
at io.opentelemetry.sdk.metrics.SdkLongCounter$Builder.build(SdkLongCounter.java:83)
at com.intuit.observability.observabilly.metering.MonotonicMeter.(MonotonicMeter.java:31)
at com.intuit.observability.observabilly.processors.UniqueCounter.(UniqueCounter.java:52)
at com.intuit.observability.observabilly.configuration.ConfigureTracer.configure(ConfigureTracer.java:44)
at io.opentelemetry.sdk.autoconfigure.TracerProviderConfiguration.configureTracerProvider(TracerProviderConfiguration.java:48)
at io.opentelemetry.sdk.autoconfigure.OpenTelemetrySdkAutoConfiguration.initialize(OpenTelemetrySdkAutoConfiguration.java:66)
at io.opentelemetry.javaagent.tooling.OpenTelemetryInstaller.installAgentTracer(OpenTelemetryInstaller.java:52)
at io.opentelemetry.javaagent.tooling.OpenTelemetryInstaller.beforeAgent(OpenTelemetryInstaller.java:34)
at io.opentelemetry.javaagent.tooling.AgentInstaller.runBeforeAgentListeners(AgentInstaller.java:200)
at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:133)
at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:111)

Something missing in the 1.7.1 Java agent build ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant