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

Crash with J9 1.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Labels:
      None
    • Environment:
      Java J9 1.6
      instant-messaging version 1.35
    • Similar Issues:

      Description

      After updating from 1.30 to 1.35, I encountered the following stack trace:

      {{SEVERE: Failed Loading plugin ircbot
      Throwable occurred: java.io.IOException: Unable to load hudson.plugins.ircbot.PluginImpl from ircbot
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:422)
      at hudson.PluginManager$2$1$1.run(PluginManager.java:371)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:908)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:931)
      at java.lang.Thread.run(Thread.java:738)
      Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=hudson/plugins/im/IMPlugin, offset=6
      at java.lang.ClassLoader.defineClassImpl(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
      at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:799)
      at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      at java.lang.reflect.Method.invoke(Method.java:611)
      at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:677)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
      at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1398)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1075)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
      at hudson.plugins.ircbot.PluginImpl.<init>(PluginImpl.java:18)
      at java.lang.J9VMInternals.newInstanceImpl(Native Method)
      at java.lang.Class.newInstance(Class.java:1549)
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:416)
      ... 9 more}}

      Downgrading to 1.30 worked.

      I know that IBM J9 might be not supported, but I think that instant-messaging should support 1.6 version of Java.

        Attachments

          Activity

          Hide
          kutzi kutzi added a comment - - edited

          -The Wiki clearly states that Java 7 is required:-
          There's no way around this as the underlying xmpp library require 1.7 itself.

          Show
          kutzi kutzi added a comment - - edited - The Wiki clearly states that Java 7 is required: - There's no way around this as the underlying xmpp library require 1.7 itself.
          Hide
          kutzi kutzi added a comment -

          Ups, sorry. Thought this was abnout the jabber-plugin

          Show
          kutzi kutzi added a comment - Ups, sorry. Thought this was abnout the jabber-plugin
          Hide
          kutzi kutzi added a comment -

          Will see, what I can do. Anyway there are serious talks going on to raise the requirements for Jenkins itself to Java 1.7. So you won't have any luck running Jenkins with 1.6 for much longer.

          Show
          kutzi kutzi added a comment - Will see, what I can do. Anyway there are serious talks going on to raise the requirements for Jenkins itself to Java 1.7. So you won't have any luck running Jenkins with 1.6 for much longer.
          Hide
          kutzi kutzi added a comment -

          What does stop you from running Jenkins with a 1.7 VM?

          Show
          kutzi kutzi added a comment - What does stop you from running Jenkins with a 1.7 VM?
          Hide
          danielbeck Daniel Beck added a comment -

          Anyway there are serious talks going on to raise the requirements for Jenkins itself to Java 1.7.

          1.612 ships with 1.7 class files.

          Show
          danielbeck Daniel Beck added a comment - Anyway there are serious talks going on to raise the requirements for Jenkins itself to Java 1.7. 1.612 ships with 1.7 class files.
          Hide
          adrien Adrien CLERC added a comment -

          OK, I missed the 1.612 release information.
          Running 1.7 on the master should be OK. But on slave, I will have some troubles, since some of them are still on SLES10, and I don't think this is a supported system for Java7.

          Software in real life is not as mainstream as it should be…

          Anyway, it should be clearly stated in the release notes that Java 7 is now required, as Jenkins core does.

          Show
          adrien Adrien CLERC added a comment - OK, I missed the 1.612 release information. Running 1.7 on the master should be OK. But on slave, I will have some troubles, since some of them are still on SLES10, and I don't think this is a supported system for Java7. Software in real life is not as mainstream as it should be… Anyway, it should be clearly stated in the release notes that Java 7 is now required, as Jenkins core does.
          Hide
          danielbeck Daniel Beck added a comment -

          Anyway, it should be clearly stated in the release notes that Java 7 is now required, as Jenkins core does.

          Not sure what you mean, http://jenkins-ci.org/changelog says, in the section on 1.612:

          > As promised, shipping with Java7 class files. (issue 28120)

          Could be bold though to be more obvious. Or at the top. Or both. I'll try to do that later today.

          I don't think this is a supported system for Java7.

          We are only now moving to require Java 7 after Oracle EOL'ed it (April 2015). So it's not like we're on the bleeding edge here and have unreasonable requirements.

          some of them are still on SLES10

          FWIW SLES 10 has been out of regular support for a while now as well.

          Note that you can always choose to not use bleeding edge releases of Jenkins, but stay with an LTS release for a while instead while you're getting your infra up to date (such as the upcoming 1.609.x LTS release line that still supports Java 6).

          Show
          danielbeck Daniel Beck added a comment - Anyway, it should be clearly stated in the release notes that Java 7 is now required, as Jenkins core does. Not sure what you mean, http://jenkins-ci.org/changelog says, in the section on 1.612: > As promised, shipping with Java7 class files. (issue 28120) Could be bold though to be more obvious. Or at the top. Or both. I'll try to do that later today. I don't think this is a supported system for Java7. We are only now moving to require Java 7 after Oracle EOL'ed it (April 2015). So it's not like we're on the bleeding edge here and have unreasonable requirements. some of them are still on SLES10 FWIW SLES 10 has been out of regular support for a while now as well. Note that you can always choose to not use bleeding edge releases of Jenkins, but stay with an LTS release for a while instead while you're getting your infra up to date (such as the upcoming 1.609.x LTS release line that still supports Java 6).
          Hide
          adrien Adrien CLERC added a comment -

          Could be bold though to be more obvious. Or at the top. Or both. I'll try to do that later today.

          I was talking about the instant-messenger-plugin that does not mention the switch to Java 7 in its changelog, not the core.

          But it should be good that the changelog of Jenkins use a big blue ball anyway

          Show
          adrien Adrien CLERC added a comment - Could be bold though to be more obvious. Or at the top. Or both. I'll try to do that later today. I was talking about the instant-messenger-plugin that does not mention the switch to Java 7 in its changelog, not the core. But it should be good that the changelog of Jenkins use a big blue ball anyway
          Hide
          danielbeck Daniel Beck added a comment -

          I was talking about the instant-messenger-plugin that does not mention the switch to Java 7 in its changelog, not the core.

          Oops... sorry about that! Now the 'as Jenkins core does' parses without error for me

          Show
          danielbeck Daniel Beck added a comment - I was talking about the instant-messenger-plugin that does not mention the switch to Java 7 in its changelog, not the core. Oops... sorry about that! Now the 'as Jenkins core does' parses without error for me
          Hide
          danielbeck Daniel Beck added a comment -

          FYI I increased the visibility of the changelog entry and moved it to the top.

          Show
          danielbeck Daniel Beck added a comment - FYI I increased the visibility of the changelog entry and moved it to the top.
          Hide
          kutzi kutzi added a comment -

          I've now documented it for the plugin, too.

          Show
          kutzi kutzi added a comment - I've now documented it for the plugin, too.
          Hide
          adrien Adrien CLERC added a comment -

          Many thanks! In the meantime, I managed to installed at least Java7 on all my slaves. Except on a Debian Etch. This one is really old But fortunately, it doesn't really matter

          Show
          adrien Adrien CLERC added a comment - Many thanks! In the meantime, I managed to installed at least Java7 on all my slaves. Except on a Debian Etch. This one is really old But fortunately, it doesn't really matter

            People

            Assignee:
            kutzi kutzi
            Reporter:
            adrien Adrien CLERC
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: