Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8914

Jenkins 1.399: java.lang.UnsupportedClassVersionError: Bad version number in .class file using JmDNS 3.4.0

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Debian Lenny running Linux 2.6.26-2-amd64
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)
      Tomcat 5.5

      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:

      ----------
      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)
      ----------

      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-8914] Jenkins 1.399: java.lang.UnsupportedClassVersionError: Bad version number in .class file using JmDNS 3.4.0

          Jean-Baptiste Lièvremont created issue -
          Marco Rothe made changes -
          Link New: This issue is related to JENKINS-6653 [ JENKINS-6653 ]
          Marco Rothe made changes -
          Link New: This issue is related to JENKINS-8647 [ JENKINS-8647 ]
          Marco Rothe made changes -
          Link New: This issue duplicates JENKINS-8909 [ JENKINS-8909 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Kohsuke Kawaguchi made changes -
          Link New: This issue is duplicated by JENKINS-9014 [ JENKINS-9014 ]
          Jean-Baptiste Lièvremont made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Johannes Stelzer made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Laurent Schoelens made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Vincent Latombe made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            laurents59 Laurent Schoelens
            jb_lievremont Jean-Baptiste Lièvremont
            Votes:
            11 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: