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

Stackoverflow: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core
    • None
    • SUSE Linux Enterprise Server 12 SP3, Oracle Jave 1.6.0_161 64 Bit

      If I replace jenkins 2.239 with jenkins 2.239 and start jenkins, I don't see the start message in the jenkins GUI. Also there are no jobs displayed. I can't do anything in jenkins.
      If I go back to 2.239 everything is OK.
      I only can get the systeminfo from version 2.239. I attached the systeminfo.html file from my jenkins version 2.239 to show the installed plugins.
      The attached zip-file contains the output from jenkins to stdout.

      The relevant exception appears to be:

      2020-06-08 15:25:41.859+0000 [id=135]   WARNING o.e.jetty.server.HttpChannel#handleException: /jenkins/manage
      org.apache.commons.jelly.JellyTagException: jar:file:/data1/jenkins/.jenkins/war/WEB-INF/lib/jenkins-core-2.240.jar!/lib/layout/layout.jelly:96:72: <st:include> Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
              at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:745)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:289)
              at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
              at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
              at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
              at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:56)
              at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:43)
              at org.kohsuke.stapler.Facet$1.dispatch(Facet.java:238)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
              at hudson.init.impl.InstallUncaughtExceptionHandler.handleException(InstallUncaughtExceptionHandler.java:67)
              at hudson.init.impl.InstallUncaughtExceptionHandler.lambda$init$0(InstallUncaughtExceptionHandler.java:36)
              at org.kohsuke.stapler.compression.CompressionFilter.reportException(CompressionFilter.java:77)
              at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:55)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
              at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
              at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
              at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.Server.handle(Server.java:500)
              at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
              at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
              at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
              at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
              at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:34)
              at org.kohsuke.stapler.jelly.groovy.JellyBuilder.<init>(JellyBuilder.java:103)
              at org.kohsuke.stapler.jelly.groovy.GroovierJellyScript.run(GroovierJellyScript.java:62)
              at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              ... 69 more
      

          [JENKINS-62654] Stackoverflow: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

          Oleg Nenashev added a comment -

          rw250155 could you please provide a full stacktrace? The interesting part is missing from what I can tell

          Oleg Nenashev added a comment - rw250155 could you please provide a full stacktrace? The interesting part is missing from what I can tell

          Reiner Wirtz added a comment -

          Please can you give me a hint how to produce the fullstacktrace?
          If I start the version 2.240 instead of 2.239 I don't have access to the web interface of jenkins.

          Reiner Wirtz added a comment - Please can you give me a hint how to produce the fullstacktrace? If I start the version 2.240 instead of 2.239 I don't have access to the web interface of jenkins.

          Reiner Wirtz added a comment -

          Please close the ticket.
          The problem is solved now.
          Today I updated 6 of the installed plugins to new versions available.

          drwxr-xr-x 4 jenkins users 56 17. Jun 14:29 github-api
          drwxr-xr-x 6 jenkins users 82 17. Jun 14:29 matrix-project
          drwxr-xr-x 5 jenkins users 70 17. Jun 14:29 workflow-support
          drwxr-xr-x 5 jenkins users 98 17. Jun 14:29 github-branch-source
          drwxr-xr-x 6 jenkins users 82 17. Jun 14:29 credentials
          drwxr-xr-x 5 jenkins users 70 17. Jun 14:29 cloudbees-folder
          jenkins@sst-j-master:~/.jenkins/plugins>

          Then I tried to update jenkins.war from version 2.239 to 2.241.
          The jenkins application started immediately.
          Then I rolled back to version 2.240 and started it.
          Again the jenkins application started fine without errors.
          Then I installed version 2.241 again and start working with the version.

          So I needno more support for the problem.
          Thank you!

          Reiner Wirtz added a comment - Please close the ticket. The problem is solved now. Today I updated 6 of the installed plugins to new versions available. drwxr-xr-x 4 jenkins users 56 17. Jun 14:29 github-api drwxr-xr-x 6 jenkins users 82 17. Jun 14:29 matrix-project drwxr-xr-x 5 jenkins users 70 17. Jun 14:29 workflow-support drwxr-xr-x 5 jenkins users 98 17. Jun 14:29 github-branch-source drwxr-xr-x 6 jenkins users 82 17. Jun 14:29 credentials drwxr-xr-x 5 jenkins users 70 17. Jun 14:29 cloudbees-folder jenkins@sst-j-master:~/.jenkins/plugins> Then I tried to update jenkins.war from version 2.239 to 2.241. The jenkins application started immediately. Then I rolled back to version 2.240 and started it. Again the jenkins application started fine without errors. Then I installed version 2.241 again and start working with the version. So I needno more support for the problem. Thank you!

            Unassigned Unassigned
            rw250155 Reiner Wirtz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: