org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed 1 error

Google Groups | jgl...@cloudbees.com (JIRA) | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [JIRA] (JENKINS-38048) Credentials dropdowns empty when configuring external libraries at the global level

    Google Groups | 6 months ago | jgl...@cloudbees.com (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed 1 error
  2. 0

    [JIRA] (JENKINS-40055) p4-plugin exception when used with the shared pipeline libraries plugin. p4.tasks.AbstractTask.setEnvironment

    Google Groups | 3 months ago | darren...@thirdkindgames.com (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed 1 error
  3. 0

    [JIRA] [workflow-plugin] (JENKINS-32508) Workflow does not support the standard Groovy JSON parser: JsonSlurper

    Google Groups | 1 year ago | cleclerc@cloudbees.com (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Simply execute this code in Groovy script : node('MYNODE') { bat ''echo ON ''' } And it will loop infinitely (all I did is deleted a ' after the word bat by accident). Had to reboot server to end the task. Here is the output: Started by user anonymous ERROR: failed to start build org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 13: expecting ''', found '<EOF>' @ line 13, column 2. } ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:149) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:119) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:131) at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:359) at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:137) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:108) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:236) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:161) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:846) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:550) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:526) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:503) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:100) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:356) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:323) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:188) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

    Jenkins JIRA | 2 years ago | Martin B├ędard
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 13: expecting ''', found '<EOF>' @ line 13, column 2. } ^ 1 error
  6. 0

    Jenkins Workflow does not support the standard JSON parser of the Groovy Language: JsonSlurper. This makes it very cumbersome to parse the result of CLI calls such as AWS CLI... *Test case* {code} node { println "Parse JSON file as recommended in Groovy Reference Guide http://www.groovy-lang.org/json.html" def jsonSlurper = new JsonSlurper() def object = jsonSlurper.parseText ''' { "simple": 123, "fraction": 123.66, "exponential": 123e12 }''' println object } {code} *Error Message* {noformat} Started by user admin org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:861) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:550) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:499) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) 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:362) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:329) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:208) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Finished: FAILURE {noformat}

    Jenkins JIRA | 1 year ago | Cyrille Le Clerc
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 5: unable to resolve class JsonSlurper @ line 5, column 19. def jsonSlurper = new JsonSlurper() ^ 1 error

  1. serious2monkeys 8 times, last 3 months ago
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. org.codehaus.groovy.control.MultipleCompilationErrorsException

    startup failed: WorkflowScript: Loading libraries failed 1 error

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
  2. Groovy
    GroovyShell.parse
    1. org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
    2. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:997)
    3. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)
    4. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:526)
    5. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:503)
    6. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302)
    7. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
    8. groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
    9. groovy.lang.GroovyShell.parse(GroovyShell.java:743)
    9 frames
  3. org.jenkinsci.plugins
    WorkflowRun.run
    1. org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
    2. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:410)
    3. org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:373)
    4. org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:213)
    4 frames
  4. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:98)
    2. hudson.model.Executor.run(Executor.java:410)
    2 frames