java.lang.UnsupportedClassVersionError: javassist/ClassPool : Unsupported major.minor version 52.0

JBoss Issue Tracker | Simon Franquet | 1 year ago
  1. 0

    Sorry, not sure it's the right place to post this, but anyway : during instrumentation, class transformation fails with the this : Redefinition class failed ! java.lang.UnsupportedClassVersionError: javassist/ClassPool : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at com.meilleuregestion.instrumentation.Transformer.transform(Transformer.java:33) at sun.instrument.TransformerManager.transform(TransformerManager.java:169) at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:365) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.util.Introspection.loadClass(Introspection.java:143) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:135)

    JBoss Issue Tracker | 1 year ago | Simon Franquet
    java.lang.UnsupportedClassVersionError: javassist/ClassPool : Unsupported major.minor version 52.0
  2. 0
    Update "latest" to Java 8 on DockerHub.
    via Google Groups by Marcus Haebler
  3. 0
    You're using an older version of java with classes compiled for java7
    via GitHub by Athou
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TestNG blocks build of Netbeans 8 project (Java 6)

    Stack Overflow | 3 years ago | blagae
    java.lang.UnsupportedClassVersionError: org/testng/TestNG : Unsupported major.minor version 51.0
  6. 0

    Precompiled Jars will not run on Mac Mountain Lion

    GitHub | 3 years ago | stephenmac7
    java.lang.UnsupportedClassVersionError: org/bonsaimind/easyminelauncher/Main : Unsupported major.minor version 51.0
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    javassist/ClassPool : Unsupported major.minor version 52.0

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    10. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    11. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    12. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    12 frames
  3. com.meilleuregestion.instrumentation
    Transformer.transform
    1. com.meilleuregestion.instrumentation.Transformer.transform(Transformer.java:33)
    1 frame
  4. Java RT
    SecureClassLoader.defineClass
    1. sun.instrument.TransformerManager.transform(TransformerManager.java:169)
    2. sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:365)
    3. java.lang.ClassLoader.defineClass1(Native Method)
    4. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    5. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    6. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    6 frames
  5. Glassfish Core
    WebAnnotationSet.loadApplicationServletAnnotations
    1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
    2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
    4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    5. org.apache.catalina.util.Introspection.loadClass(Introspection.java:143)
    6. org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:135)
    6 frames