org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">1 error</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0"> at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)

Google Groups | be_...@sbcglobal.net (JIRA) | 2 months ago
  1. 0

    [JIRA] (JENKINS-38517) Multiple shared libs throw "ERROR: Library <lib name> expected to contain at least one of src or vars directories" when ...

    Google Groups | 2 months ago | be_...@sbcglobal.net (JIRA)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: Loading libraries failed</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">1 error</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0"> at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
  2. 0

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

    Google Groups | 11 months 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
  3. 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 | 1 year ago | Martin B├ędard
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 13: expecting ''', found '<EOF>' @ line 13, column 2. } ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 | 11 months 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
  6. 0

    Groovy script other script tools functions

    Google Groups | 4 months ago | Unknown author
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 30: Class definition not expected here. Please define the class at an appropriate place or perhaps try using a block/Closure instead. at line: 30 column: 2. File: WorkflowScript @ line 30, column 2. class BCadTools ^ 1 error

  1. serious2monkeys 8 times, last 1 week 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</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">1 error</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0"> at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)

    at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes()
  2. Groovy
    GroovyShell.parse
    1. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073)
    2. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
    3. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
    4. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
    5. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
    6. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
    7. groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
    8. groovy.lang.GroovyShell.parse(GroovyShell.java:700)
    8 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