groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable

Jenkins JIRA | Tobias Getrost | 1 year ago
  1. 0

    Steps to reproduce: # Download Tomcat 8.0.27 # Start tomcat # Download jenkins.war # Copy jenkins.war to $TOMCAT_HOME/webapps # Install workflow-aggregator plugin # create a simple hello world workflow running in sandbox mode # run build now The build fails with the following exception: {code} groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:430) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:106) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:361) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:328) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:189) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable at org.kohsuke.asm5.ClassWriter.getCommonSuperClass(ClassWriter.java:1684) at org.kohsuke.asm5.ClassWriter.getMergedType(ClassWriter.java:1654) at org.kohsuke.asm5.Frame.merge(Frame.java:1426) at org.kohsuke.asm5.Frame.merge(Frame.java:1374) at org.kohsuke.asm5.MethodWriter.visitMaxs(MethodWriter.java:1475) at org.kohsuke.asm5.tree.MethodNode.accept(MethodNode.java:833) at org.kohsuke.asm5.commons.JSRInlinerAdapter.visitEnd(JSRInlinerAdapter.java:187) at org.kohsuke.asm5.MethodVisitor.visitEnd(MethodVisitor.java:877) at org.kohsuke.asm5.ClassReader.readMethod(ClassReader.java:1021) at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:693) at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:506) at org.jenkinsci.bytecode.Transformer.transform(Transformer.java:76) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:800) 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 jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.jenkinsci.plugins.workflow.cps.CpsScript.<init>(CpsScript.java:62) at WorkflowScript.<init>(WorkflowScript) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:433) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:408) ... 7 more Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Tobias Getrost
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable
  2. 0

    Steps to reproduce: # Download Tomcat 8.0.27 # Start tomcat # Download jenkins.war # Copy jenkins.war to $TOMCAT_HOME/webapps # Install workflow-aggregator plugin # create a simple hello world workflow running in sandbox mode # run build now The build fails with the following exception: {code} groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:430) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:106) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:361) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:328) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:189) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable at org.kohsuke.asm5.ClassWriter.getCommonSuperClass(ClassWriter.java:1684) at org.kohsuke.asm5.ClassWriter.getMergedType(ClassWriter.java:1654) at org.kohsuke.asm5.Frame.merge(Frame.java:1426) at org.kohsuke.asm5.Frame.merge(Frame.java:1374) at org.kohsuke.asm5.MethodWriter.visitMaxs(MethodWriter.java:1475) at org.kohsuke.asm5.tree.MethodNode.accept(MethodNode.java:833) at org.kohsuke.asm5.commons.JSRInlinerAdapter.visitEnd(JSRInlinerAdapter.java:187) at org.kohsuke.asm5.MethodVisitor.visitEnd(MethodVisitor.java:877) at org.kohsuke.asm5.ClassReader.readMethod(ClassReader.java:1021) at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:693) at org.kohsuke.asm5.ClassReader.accept(ClassReader.java:506) at org.jenkinsci.bytecode.Transformer.transform(Transformer.java:76) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:800) 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 jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.jenkinsci.plugins.workflow.cps.CpsScript.<init>(CpsScript.java:62) at WorkflowScript.<init>(WorkflowScript) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:433) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:408) ... 7 more Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Tobias Getrost
    groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable
  3. 0

    GitHub comment 36#147910723

    GitHub | 1 year ago | stadia
    java.io.IOException: Failed to initialize
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [ruby-runtime-plugin] (JENKINS-30898) Ruby Runtime Plugin - org.jruby.util.collections.WeakHashSet not found

    Google Groups | 1 year ago | mariusz.wiktorczyk@consileon.pl (JIRA)
    java.io.IOException: Failed to dynamically deploy this plugin

    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.RuntimeException

      java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.cps.SandboxContinuable

      at org.kohsuke.asm5.ClassWriter.getCommonSuperClass()
    2. asm5
      ClassReader.accept
      1. org.kohsuke.asm5.ClassWriter.getCommonSuperClass(ClassWriter.java:1684)
      2. org.kohsuke.asm5.ClassWriter.getMergedType(ClassWriter.java:1654)
      3. org.kohsuke.asm5.Frame.merge(Frame.java:1426)
      4. org.kohsuke.asm5.Frame.merge(Frame.java:1374)
      5. org.kohsuke.asm5.MethodWriter.visitMaxs(MethodWriter.java:1475)
      6. org.kohsuke.asm5.tree.MethodNode.accept(MethodNode.java:833)
      7. org.kohsuke.asm5.commons.JSRInlinerAdapter.visitEnd(JSRInlinerAdapter.java:187)
      8. org.kohsuke.asm5.MethodVisitor.visitEnd(MethodVisitor.java:877)
      9. org.kohsuke.asm5.ClassReader.readMethod(ClassReader.java:1021)
      10. org.kohsuke.asm5.ClassReader.accept(ClassReader.java:693)
      11. org.kohsuke.asm5.ClassReader.accept(ClassReader.java:506)
      11 frames
    3. org.jenkinsci.bytecode
      Transformer.transform
      1. org.jenkinsci.bytecode.Transformer.transform(Transformer.java:76)
      1 frame
    4. Hudson
      ClassicPluginStrategy$AntClassLoader2.defineClassFromData
      1. hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:800)
      1 frame
    5. jenkins.util
      AntClassLoader.loadClass
      1. jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      2. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      3. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      4. jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      4 frames
    6. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      1 frame
    7. org.jenkinsci.plugins
      CpsScript.<init>
      1. org.jenkinsci.plugins.workflow.cps.CpsScript.<init>(CpsScript.java:62)
      1 frame
    8. Unknown
      WorkflowScript.<init>
      1. WorkflowScript.<init>(WorkflowScript)
      1 frame
    9. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      5. java.lang.Class.newInstance(Class.java:433)
      5 frames
    10. Groovy
      GroovyShell.parse
      1. org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:408)
      2. groovy.lang.GroovyShell.parse(GroovyShell.java:743)
      2 frames
    11. org.jenkinsci.plugins
      WorkflowRun.run
      1. org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:106)
      2. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:361)
      3. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:328)
      4. org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:189)
      4 frames
    12. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:408)
      2 frames