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

HudsonFailedToLoad after upgrade to 2.357 with jruby NoClassDefFoundError

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core
    • None

      After upgrading from 2.347 to 2.357, Jenkins fails to load with following error message.  I was able to manually downgrade back to 2.347 with only a minor issues with a new plugin that I assume got installed during the upgrade.  ("Instance Identity (3.1)Jenkins (2.348) or higher required")

       

      java.lang.NoClassDefFoundError: org/jruby/javasupport/proxy/InternalJavaProxy
      	at org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)
      	at hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
      	at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
      	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)
      	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)
      	at com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)
      	at hudson.XmlFile.write(XmlFile.java:213)
      	at jenkins.model.Jenkins.save(Jenkins.java:3545)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:1005)
      	at hudson.model.Hudson.<init>(Hudson.java:86)
      	at hudson.model.Hudson.<init>(Hudson.java:82)
      	at hudson.WebAppMain$3.run(WebAppMain.java:247)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:261) 

          [JENKINS-68882] HudsonFailedToLoad after upgrade to 2.357 with jruby NoClassDefFoundError

          Rob Brunelle added a comment -

          I have the following dependency errors in Jenkins 2.347 related to ruby.  I haven't gotten around to looking for replacements for these plugins yet.

           

          Commit Message Trigger Plugin (0.1) Plugin is missing: ruby-runtime (0.12)
          Pathignore Plugin (0.6) Plugin is missing: ruby-runtime (0.6) 

          Rob Brunelle added a comment - I have the following dependency errors in Jenkins 2.347 related to ruby.  I haven't gotten around to looking for replacements for these plugins yet.   Commit Message Trigger Plugin (0.1) Plugin is missing: ruby-runtime (0.12) Pathignore Plugin (0.6) Plugin is missing: ruby-runtime (0.6)

          Basil Crow added a comment -

          JRuby support was removed from Jenkins core in 2.332.1. A small number of JRuby-based plugins are affected. See the JRuby removal blog post for migration notes:

          Commit Message Trigger
          Last released 7 years ago.
          Suggestion: Use sh, bat, or other scripts to read git commit messages and conditionally execute Pipeline steps.

          Pathignore
          Last released 10 years ago.
          Suggestion: Use the path ignore features of various plugins or use sh, bat, or other scripts to read git commit messages and conditionally execute Pipeline steps.

          Basil Crow added a comment - JRuby support was removed from Jenkins core in 2.332.1 . A small number of JRuby-based plugins are affected. See the JRuby removal blog post for migration notes: Commit Message Trigger Last released 7 years ago. Suggestion: Use sh , bat , or other scripts to read git commit messages and conditionally execute Pipeline steps. Pathignore Last released 10 years ago. Suggestion: Use the path ignore features of various plugins or use sh , bat , or other scripts to read git commit messages and conditionally execute Pipeline steps.

            Unassigned Unassigned
            gamentek Rob Brunelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: