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

Unsupported class file major version 64 #70

Open
Umaaz opened this issue Nov 21, 2023 · 0 comments
Open

Unsupported class file major version 64 #70

Umaaz opened this issue Nov 21, 2023 · 0 comments

Comments

@Umaaz
Copy link
Member

Umaaz commented Nov 21, 2023

Describe the bug
When running test app on Java 20.0.2-open this error is given:

Nov 21, 2023 3:01:27 PM com.intergral.deep.agent.tracepoint.inst.TracepointInstrumentationService transform
FINE: Transforming class: com/intergral/test/SimpleTest
Nov 21, 2023 3:01:27 PM com.intergral.deep.agent.tracepoint.inst.TracepointInstrumentationService transform
SEVERE: transform failed for com/intergral/test/SimpleTest
java.lang.IllegalArgumentException: Unsupported class file major version 64
	at com.intergral.deep.relocated.org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
	at com.intergral.deep.relocated.org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
	at com.intergral.deep.relocated.org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
	at com.intergral.deep.agent.tracepoint.inst.TracepointInstrumentationService.transform(TracepointInstrumentationService.java:363)
	at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
	at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
	at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at com.intergral.test.Main.main(Main.java:62)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'intergral/test-app-java'
  2. Configure to use Java 20.0.2-open (easiest to use sdkman)
  3. Run app
  4. See error in logs

Expected behavior
Should install and trigger tracepoint.

Additional context
Probably need a new version of ASM.

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