UnsupportedClassVersionError for HttpClientInstrumentationModule #7084
Unanswered
ychaydhari
asked this question in
Q&A
Replies: 2 comments 2 replies
-
hi @ychaydhari, interestingly I'm able to reproduce this on Java 9 also, can you try on a currently supported Java version? (8, 11, 17 or 19) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is any fix for this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Getting the following exception at service start. Can somebody help me to fix this? I tried with java different version
I'm using java version 9 and opentelemetry-javaagent - version: 1.17.0.
[otel.javaagent 2022-11-06 00:19:12:791 +0530] [main] ERROR io.opentelemetry.javaagent.tooling.AgentInstaller - Unable to load extension instrumentation-loader [class io.opentelemetry.javaagent.tooling.instrumentation.InstrumentationLoader]
java.lang.UnsupportedClassVersionError: io/opentelemetry/javaagent/instrumentation/httpclient/HttpClientInstrumentationModule has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 53.0
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at io.opentelemetry.javaagent.bootstrap.AgentClassLoader.defineClass(AgentClassLoader.java:177)
at io.opentelemetry.javaagent.bootstrap.AgentClassLoader.findAgentClass(AgentClassLoader.java:170)
at io.opentelemetry.javaagent.bootstrap.AgentClassLoader.loadClass(AgentClassLoader.java:145)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1204)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1215)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1259)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1294)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1379)
at io.opentelemetry.javaagent.tooling.SafeServiceLoader.load(SafeServiceLoader.java:36)
at io.opentelemetry.javaagent.tooling.SafeServiceLoader.loadOrdered(SafeServiceLoader.java:51)
at io.opentelemetry.javaagent.tooling.instrumentation.InstrumentationLoader.extend(InstrumentationLoader.java:30)
at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:167)
at io.opentelemetry.javaagent.tooling.AgentInstaller.installBytebuddyAgent(AgentInstaller.java:95)
at io.opentelemetry.javaagent.tooling.AgentStarterImpl.internalStart(AgentStarterImpl.java:89)
at io.opentelemetry.javaagent.tooling.AgentStarterImpl.start(AgentStarterImpl.java:68)
at io.opentelemetry.javaagent.bootstrap.AgentInitializer.initialize(AgentInitializer.java:35)
at io.opentelemetry.javaagent.OpenTelemetryAgent.startAgent(OpenTelemetryAgent.java:57)
at io.opentelemetry.javaagent.OpenTelemetryAgent.premain(OpenTelemetryAgent.java:45)
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:500)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:512)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1
Beta Was this translation helpful? Give feedback.
All reactions