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

ruby-runtime throws java.lang.IncompatibleClassChangeError on start up

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core, ruby-runtime
    • None
    • Linux sid 3.8-1-amd64 #1 SMP Debian 3.8.11-1 x86_64 GNU/Linux

      From Jenkins 1.518, ruby-runtime 0.10 throws java.lang.IncompatibleClassChangeError on start up. If this happens, all plugins which depend on ruby-runtime are also failed to start.

      Running from: /usr/share/jenkins/jenkins.war
      Jun 12, 2013 6:26:15 PM winstone.Logger logInternal
      INFO: Beginning extraction from war file
      Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
      Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
      INFO: HTTP Listener started: port=8081
      Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
      INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
      Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started initialization
      Jun 12, 2013 6:26:16 PM hudson.ClassicPluginStrategy createPluginWrapper
      INFO: Plugin rvm.jpi is disabled
      Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      Jun 12, 2013 6:26:16 PM ruby.RubyRuntimePlugin start
      INFO: Injecting JRuby into XStream
      java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
      	at com.kenai.jaffl.provider.jffi.AsmRuntime.marshal(AsmRuntime.java:169)
      	at org.jruby.ext.posix.LinuxLibC$jaffl$0.setenv(Unknown Source)
      	at org.jruby.ext.posix.BaseNativePOSIX.setenv(BaseNativePOSIX.java:221)
      	at org.jruby.ext.posix.LazyPOSIX.setenv(LazyPOSIX.java:263)
      	at org.jruby.RubyGlobal$StringOnlyRubyHash.case_aware_op_aset(RubyGlobal.java:176)
      	at org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash.op_aset(RubyGlobal.java:87)
      	at org.jruby.RubyHash$i$2$0$op_aset.call(RubyHash$i$2$0$op_aset.gen:65535)
      	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
      	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
      	at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:42)
      	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
      	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
      	at org.jruby.ast.RootNode.interpret(RootNode.java:129)
      	at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120)
      	at org.jruby.Ruby.runInterpreter(Ruby.java:720)
      	at org.jruby.Ruby.runInterpreter(Ruby.java:728)
      	at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:119)
      	at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
      	at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
      	at org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
      	at org.kohsuke.stapler.jelly.jruby.JRubyFacet.<init>(JRubyFacet.java:71)
      	at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
      	at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
      	at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
      	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
      	at hudson.PluginManager$2$1$1.run(PluginManager.java:334)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      	at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      

      The entire log is attached as "jenkins.log".

          [JENKINS-18310] ruby-runtime throws java.lang.IncompatibleClassChangeError on start up

          Yuu Yamashita created issue -
          Yuu Yamashita made changes -
          Description Original: From Jenkins 1.518, ruby-runtime 0.10 throws {{java.lang.IncompatibleClassChangeError}} on start up. If this happens, all plugins which depend on ruby-runtime are also failed to start.

          {code}Running from: /usr/share/jenkins/jenkins.war
          Jun 12, 2013 6:26:15 PM winstone.Logger logInternal
          INFO: Beginning extraction from war file
          Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
          Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
          INFO: HTTP Listener started: port=8081
          Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
          INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
          Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
          INFO: Started initialization
          Jun 12, 2013 6:26:16 PM hudson.ClassicPluginStrategy createPluginWrapper
          INFO: Plugin rvm.jpi is disabled
          Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
          INFO: Listed all plugins
          Jun 12, 2013 6:26:16 PM ruby.RubyRuntimePlugin start
          INFO: Injecting JRuby into XStream
          java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
          at com.kenai.jaffl.provider.jffi.AsmRuntime.marshal(AsmRuntime.java:169)
          at org.jruby.ext.posix.LinuxLibC$jaffl$0.setenv(Unknown Source)
          at org.jruby.ext.posix.BaseNativePOSIX.setenv(BaseNativePOSIX.java:221)
          at org.jruby.ext.posix.LazyPOSIX.setenv(LazyPOSIX.java:263)
          at org.jruby.RubyGlobal$StringOnlyRubyHash.case_aware_op_aset(RubyGlobal.java:176)
          at org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash.op_aset(RubyGlobal.java:87)
          at org.jruby.RubyHash$i$2$0$op_aset.call(RubyHash$i$2$0$op_aset.gen:65535)
          at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
          at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
          at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:42)
          at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
          at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
          at org.jruby.ast.RootNode.interpret(RootNode.java:129)
          at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120)
          at org.jruby.Ruby.runInterpreter(Ruby.java:720)
          at org.jruby.Ruby.runInterpreter(Ruby.java:728)
          at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:119)
          at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
          at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
          at org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
          at org.kohsuke.stapler.jelly.jruby.JRubyFacet.<init>(JRubyFacet.java:71)
          at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
          at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
          at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
          at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
          at hudson.PluginManager$2$1$1.run(PluginManager.java:334)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
          at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:722)
          {code}

          The entire log is attached as !jenkins.log!.
          New: From Jenkins 1.518, ruby-runtime 0.10 throws {{java.lang.IncompatibleClassChangeError}} on start up. If this happens, all plugins which depend on ruby-runtime are also failed to start.

          {code}Running from: /usr/share/jenkins/jenkins.war
          Jun 12, 2013 6:26:15 PM winstone.Logger logInternal
          INFO: Beginning extraction from war file
          Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
          Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
          INFO: HTTP Listener started: port=8081
          Jun 12, 2013 6:26:16 PM winstone.Logger logInternal
          INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
          Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
          INFO: Started initialization
          Jun 12, 2013 6:26:16 PM hudson.ClassicPluginStrategy createPluginWrapper
          INFO: Plugin rvm.jpi is disabled
          Jun 12, 2013 6:26:16 PM jenkins.InitReactorRunner$1 onAttained
          INFO: Listed all plugins
          Jun 12, 2013 6:26:16 PM ruby.RubyRuntimePlugin start
          INFO: Injecting JRuby into XStream
          java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
          at com.kenai.jaffl.provider.jffi.AsmRuntime.marshal(AsmRuntime.java:169)
          at org.jruby.ext.posix.LinuxLibC$jaffl$0.setenv(Unknown Source)
          at org.jruby.ext.posix.BaseNativePOSIX.setenv(BaseNativePOSIX.java:221)
          at org.jruby.ext.posix.LazyPOSIX.setenv(LazyPOSIX.java:263)
          at org.jruby.RubyGlobal$StringOnlyRubyHash.case_aware_op_aset(RubyGlobal.java:176)
          at org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash.op_aset(RubyGlobal.java:87)
          at org.jruby.RubyHash$i$2$0$op_aset.call(RubyHash$i$2$0$op_aset.gen:65535)
          at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
          at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
          at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:42)
          at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
          at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
          at org.jruby.ast.RootNode.interpret(RootNode.java:129)
          at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120)
          at org.jruby.Ruby.runInterpreter(Ruby.java:720)
          at org.jruby.Ruby.runInterpreter(Ruby.java:728)
          at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:119)
          at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
          at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
          at org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
          at org.kohsuke.stapler.jelly.jruby.JRubyFacet.<init>(JRubyFacet.java:71)
          at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
          at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
          at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
          at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
          at hudson.PluginManager$2$1$1.run(PluginManager.java:334)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
          at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:722)
          {code}

          The entire log is attached as "jenkins.log".

          Yuu Yamashita added a comment - - edited

          This problem might come from SHA@ 2a1d163.

          2a1d1631bd4d3e6d37d82295089d70e229ea0548 is the first bad commit
          commit 2a1d1631bd4d3e6d37d82295089d70e229ea0548
          Author: Jesse Glick <jglick@cloudbees.com>
          Date:   Fri May 31 14:36:15 2013 -0400
          
              [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in).
          
          :100644 100644 67fcc38739c5049cb772c3eba064de1df04fc4bf b64e62fa9def0663fbff65956b403540a218e802 M      changelog.html
          :040000 040000 9c34c4672f0e6d662a76a9e6074fb682015272a6 ad0e83a4a4eb92c14f7d8ab3146236608fe354aa M      core
          

          Yuu Yamashita added a comment - - edited This problem might come from SHA@ 2a1d163 . 2a1d1631bd4d3e6d37d82295089d70e229ea0548 is the first bad commit commit 2a1d1631bd4d3e6d37d82295089d70e229ea0548 Author: Jesse Glick <jglick@cloudbees.com> Date: Fri May 31 14:36:15 2013 -0400 [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in). :100644 100644 67fcc38739c5049cb772c3eba064de1df04fc4bf b64e62fa9def0663fbff65956b403540a218e802 M changelog.html :040000 040000 9c34c4672f0e6d662a76a9e6074fb682015272a6 ad0e83a4a4eb92c14f7d8ab3146236608fe354aa M core
          Yuu Yamashita made changes -
          Component/s New: core [ 15593 ]
          Yuu Yamashita made changes -
          Link New: This issue is related to JENKINS-14351 [ JENKINS-14351 ]
          Yuu Yamashita made changes -
          Link New: This issue is related to JENKINS-18314 [ JENKINS-18314 ]
          Yuu Yamashita made changes -
          Link New: This issue is duplicated by JENKINS-18311 [ JENKINS-18311 ]

          Yuu Yamashita added a comment -

          Further information should be reported to JENKINS-18311.

          Yuu Yamashita added a comment - Further information should be reported to JENKINS-18311 .
          Yuu Yamashita made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Yuu Yamashita made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            yyuu Yuu Yamashita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: