Unsupported class file major version 61
kkmaslowski opened this issue · comments
I see a lot of errors when trying to monitor springboot app running on Java 17:
2022-12-02 08:42:11 INFO MBeanServerRegistry Registering ZorkaControl MBean...
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: com/sun/jmx/mbeanserver/StandardMBeanSupport [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.management/com.sun.jmx.mbeanserver.Introspector.makeDynamicMBean(Introspector.java:194)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:893)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:320)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:523)
at com.jitlogic.zorka.core.mbeans.MBeanServerRegistry.registerZorkaControlDeferred(MBeanServerRegistry.java:288)
at com.jitlogic.zorka.core.mbeans.MBeanServerRegistry.registerZorkaControl(MBeanServerRegistry.java:278)
at com.jitlogic.zorka.agent.AgentMain.premain(AgentMain.java:89)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: com/sun/jmx/mbeanserver/StandardMBeanIntrospector [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.management/com.sun.jmx.mbeanserver.StandardMBeanSupport.getMBeanIntrospector(StandardMBeanSupport.java:65)
at java.management/com.sun.jmx.mbeanserver.MBeanSupport.<init>(MBeanSupport.java:137)
at java.management/com.sun.jmx.mbeanserver.StandardMBeanSupport.<init>(StandardMBeanSupport.java:60)
at java.management/com.sun.jmx.mbeanserver.Introspector.makeDynamicMBean(Introspector.java:194)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:893)
at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:320)
at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:523)
at com.jitlogic.zorka.core.mbeans.MBeanServerRegistry.registerZorkaControlDeferred(MBeanServerRegistry.java:288)
at com.jitlogic.zorka.core.mbeans.MBeanServerRegistry.registerZorkaControl(MBeanServerRegistry.java:278)
at com.jitlogic.zorka.agent.AgentMain.premain(AgentMain.java:89)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: sun/launcher/LauncherHelper [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: java/lang/Package$VersionInfo [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.Package.<init>(Package.java:554)
at java.base/java.lang.ClassLoader.definePackage(ClassLoader.java:2205)
at java.base/jdk.internal.loader.BuiltinClassLoader.definePackage(BuiltinClassLoader.java:974)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineOrCheckPackage(BuiltinClassLoader.java:881)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.defineOrCheckPackage(ClassLoaders.java:211)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:849)
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:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:791)
at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:686)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: sun/nio/ByteBuffered [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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/jdk.internal.loader.Resource.getByteBuffer(Resource.java:164)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:853)
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:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at java.base/sun.launcher.LauncherHelper.loadMainClass(LauncherHelper.java:791)
at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:686)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: java/net/URLClassLoader [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.findBootstrapClass(Native Method)
at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1262)
at java.base/java.lang.System$2.findBootstrapClassOrNull(System.java:2310)
at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(ClassLoaders.java:140)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:700)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:669)
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:520)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
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:520)
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3543)
at java.base/java.lang.Class.getMethod0(Class.java:3529)
at java.base/java.lang.Class.getMethod(Class.java:2225)
at java.base/sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:847)
at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:706)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: java/nio/file/attribute/PosixFilePermission [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.findBootstrapClass(Native Method)
at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1262)
at java.base/java.lang.System$2.findBootstrapClassOrNull(System.java:2310)
at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(ClassLoaders.java:140)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:700)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:669)
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:520)
at org.springframework.boot.loader.Launcher.createArchive(Launcher.java:163)
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:53)
at org.springframework.boot.loader.JarLauncher.<init>(JarLauncher.java:42)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
2022-12-02 08:42:11 ERROR SpyClassTransformer Error transforming class: java/lang/IndexOutOfBoundsException [java.lang.IllegalArgumentException: Unsupported class file major version 61]
java.lang.IllegalArgumentException: Unsupported class file major version 61
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:195)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:176)
at com.jitlogic.zorka.deps.asm.ClassReader.<init>(ClassReader.java:162)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.doTransform(SpyClassTransformer.java:363)
at com.jitlogic.zorka.core.spy.SpyClassTransformer.transform(SpyClassTransformer.java:292)
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.findBootstrapClass(Native Method)
at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1262)
at java.base/java.lang.System$2.findBootstrapClassOrNull(System.java:2310)
at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(ClassLoaders.java:140)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:700)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:669)
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:520)
at org.springframework.boot.loader.jar.JarFile.<clinit>(JarFile.java:64)
at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:73)
at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:69)
at org.springframework.boot.loader.Launcher.createArchive(Launcher.java:163)
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:53)
at org.springframework.boot.loader.JarLauncher.<init>(JarLauncher.java:42)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)