groovy.lang.GroovyRuntimeException

Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.NullPointerException

Solutions on the web247

  • via Google Groups by jgl...@cloudbees.com (JIRA), 10 months ago
    Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.NullPointerException
  • via Google Groups by artur.t...@gmail.com (JIRA), 9 months ago
    Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.NullPointerException
  • via Jenkins JIRA by Jesse Glick, 10 months ago
    Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.NullPointerException
  • Stack trace

    • groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class WorkflowScript. Reason: java.lang.NullPointerException 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:67) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:410) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:373) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:213) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.workflow.cps.CpsScript.$build(CpsScript.java:137) at org.jenkinsci.plugins.workflow.cps.CpsScript.$buildNoException(CpsScript.java:148) at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:125) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.