java.lang.UnsupportedClassVersionError: Bad version number in .class file

Jenkins JIRA | Jean-Baptiste Lièvremont | 6 years ago
  1. 0

    Greetings, I have upgraded my Jenkins server at home using the latest 1.399 WAR with the intention to fix #JENKINS-8647 (growing log files due to an issue in JmDNS) but it seems that the compatibility with Java 5 is broken by jmdns-3.4.0.jar I get the following stack trace in my catalina.log at server initialization: {noformat}---------- 28 févr. 2011 22:59:49 hudson.WebAppMain$2 run GRAVE: Failed to initialize Hudson java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.DNSMultiCast.<init>(DNSMultiCast.java:26) at hudson.model.Hudson.<init>(Hudson.java:691) at hudson.model.Hudson.<init>(Hudson.java:605) at hudson.WebAppMain$2.run(WebAppMain.java:221) ----------{noformat} I will try to build JmDNS 3.4.0 with a Java 5 JDK and see if it fixes the issue. I believe this should be patched in the next release, I might not be the last person stuck with Java 5 :) Thanks & regards, --JB.L

    Jenkins JIRA | 6 years ago | Jean-Baptiste Lièvremont
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  2. 0

    Greetings, I have upgraded my Jenkins server at home using the latest 1.399 WAR with the intention to fix #JENKINS-8647 (growing log files due to an issue in JmDNS) but it seems that the compatibility with Java 5 is broken by jmdns-3.4.0.jar I get the following stack trace in my catalina.log at server initialization: {noformat}---------- 28 févr. 2011 22:59:49 hudson.WebAppMain$2 run GRAVE: Failed to initialize Hudson java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.DNSMultiCast.<init>(DNSMultiCast.java:26) at hudson.model.Hudson.<init>(Hudson.java:691) at hudson.model.Hudson.<init>(Hudson.java:605) at hudson.WebAppMain$2.run(WebAppMain.java:221) ----------{noformat} I will try to build JmDNS 3.4.0 with a Java 5 JDK and see if it fixes the issue. I believe this should be patched in the next release, I might not be the last person stuck with Java 5 :) Thanks & regards, --JB.L

    Jenkins JIRA | 6 years ago | Jean-Baptiste Lièvremont
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  3. 0

    Unsupported class version error in java?

    Stack Overflow | 4 years ago | Anil M
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to use guava-18.0.jar in Liferay 5.2.3

    Stack Overflow | 2 years ago
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
  6. 0

    Bad version number in .class file

    Google Groups | 9 years ago | phil...@gmail.com
    java.lang.UnsupportedClassVersionError: Bad version number in .class file

    11 unregistered visitors
    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

      Bad version number in .class file

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      SecureClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      3 frames
    3. Glassfish Core
      WebappClassLoader.loadClass
      1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
      2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
      3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
      4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
      4 frames
    4. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      1 frame
    5. Hudson
      WebAppMain$2.run
      1. hudson.DNSMultiCast.<init>(DNSMultiCast.java:26)
      2. hudson.model.Hudson.<init>(Hudson.java:691)
      3. hudson.model.Hudson.<init>(Hudson.java:605)
      4. hudson.WebAppMain$2.run(WebAppMain.java:221)
      4 frames