java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)

Jenkins JIRA | Laurent Schoelens | 5 years ago
  1. 0

    Can't start Jenkins 1.462 because of the following error on Java 5. SEVERE: Failed to initialize Jenkins java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.security.PermissionScope.<init>(PermissionScope.java:70) at hudson.security.PermissionScope.<clinit>(PermissionScope.java:95) at hudson.security.Permission.<init>(Permission.java:179) at hudson.security.Permission.<clinit>(Permission.java:292) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3817) at hudson.WebAppMain.installLogger(WebAppMain.java:256) at hudson.WebAppMain.contextInitialized(WebAppMain.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) May 2, 2012 12:30:44 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart May 2, 2012 12:30:44 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/hudson] startup failed due to previous errors Reverting to 1.461 solve the issue.

    Jenkins JIRA | 5 years ago | Laurent Schoelens
    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)
  2. 0

    Can't start Jenkins 1.462 because of the following error on Java 5. SEVERE: Failed to initialize Jenkins java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.security.PermissionScope.<init>(PermissionScope.java:70) at hudson.security.PermissionScope.<clinit>(PermissionScope.java:95) at hudson.security.Permission.<init>(Permission.java:179) at hudson.security.Permission.<clinit>(Permission.java:292) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3817) at hudson.WebAppMain.installLogger(WebAppMain.java:256) at hudson.WebAppMain.contextInitialized(WebAppMain.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) May 2, 2012 12:30:44 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart May 2, 2012 12:30:44 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/hudson] startup failed due to previous errors Reverting to 1.461 solve the issue.

    Jenkins JIRA | 5 years ago | Laurent Schoelens
    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.google.common.collect.ImmutableSet)
  3. 0

    OpenXML Java 1.5 NoClassDefFoundError : Tomcat Java forum

    docx4java.org | 1 year ago
    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.sun.istack.FinalArrayList)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org. - you23hai45(游海东)的专栏 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.lang3.StringUtils)
  6. 0

    [JENKINS-6653] java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class javax.jmdns.JmDNS - Jenkins JIRA

    jenkins-ci.org | 11 months ago
    java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class javax.jmdns.JmDNS)

    6 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 (unable to load class com.google.common.collect.ImmutableSet)

      at org.apache.catalina.loader.WebappClassLoader.findClassInternal()
    2. Glassfish Core
      WebappClassLoader.loadClass
      1. org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
      2. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
      3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
      4. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      4 frames
    3. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      1 frame
    4. Hudson
      Permission.<clinit>
      1. hudson.security.PermissionScope.<init>(PermissionScope.java:70)
      2. hudson.security.PermissionScope.<clinit>(PermissionScope.java:95)
      3. hudson.security.Permission.<init>(Permission.java:179)
      4. hudson.security.Permission.<clinit>(Permission.java:292)
      4 frames
    5. jenkins.model
      Jenkins.<clinit>
      1. jenkins.model.Jenkins.<clinit>(Jenkins.java:3817)
      1 frame
    6. Hudson
      WebAppMain.contextInitialized
      1. hudson.WebAppMain.installLogger(WebAppMain.java:256)
      2. hudson.WebAppMain.contextInitialized(WebAppMain.java:107)
      2 frames
    7. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      6. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
      7. org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      13. org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      16. org.apache.catalina.core.StandardService.start(StandardService.java:525)
      17. org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      18. org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      18 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:592)
      4 frames
    9. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      2 frames