org.codehaus.groovy.control.MultipleCompilationErrorsException

startup failed:</span> <span class="diffcontext"> </span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">BUG! exception in phase 'canonicalization' in source unit '</span> <span class="diffcontext">WorkflowScript</span> <span class="diffaddedchars" style="background-color:#ddfade;">: 3: Missing required section</span> <span class="diffcontext">'</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> unexpected NullpointerException</span> <span class="diffaddedchars" style="background-color:#ddfade;">agent' @ line 3, column 1.</span> <span class="diffcontext"> </span> <span class="diffaddedchars" style="background-color:#ddfade;">&nbsp;&nbsp;&nbsp;pipeline{ &nbsp;&nbsp;&nbsp;^ 1 error </span> <span class="diffcontext"> at org.codehaus.groovy.control.</span> <span class="diffaddedchars" style="background-color:#ddfade;">ErrorCollector.failIfErrors(ErrorCollector.java:310) at org.codehaus.groovy.control.</span> <span class="diffcontext">CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">1058</span> <span class="diffaddedchars" style="background-color:#ddfade;">1073</span> <span class="diffcontext">)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web50

  • via Unknown by pw...@cloudbees.com (JIRA),
  • via Stack Overflow by cyotee
    ,
  • Stack trace

    • org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:</span> <span class="diffcontext"> </span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">BUG! exception in phase 'canonicalization' in source unit '</span> <span class="diffcontext">WorkflowScript</span> <span class="diffaddedchars" style="background-color:#ddfade;">: 3: Missing required section</span> <span class="diffcontext">'</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;"> unexpected NullpointerException</span> <span class="diffaddedchars" style="background-color:#ddfade;">agent' @ line 3, column 1.</span> <span class="diffcontext"> </span> <span class="diffaddedchars" style="background-color:#ddfade;">&nbsp;&nbsp;&nbsp;pipeline{ &nbsp;&nbsp;&nbsp;^ 1 error </span> <span class="diffcontext"> at org.codehaus.groovy.control.</span> <span class="diffaddedchars" style="background-color:#ddfade;">ErrorCollector.failIfErrors(ErrorCollector.java:310) at org.codehaus.groovy.control.</span> <span class="diffcontext">CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:</span> <span class="diffremovedchars" style="background-color: #ffe7e7; text-decoration:line-through;">1058</span> <span class="diffaddedchars" style="background-color:#ddfade;">1073</span> <span class="diffcontext">) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) at groovy.lang.GroovyShell.parse(GroovyShell.java:700) 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)

    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

    serious2monkeysserious2monkeys
    8 times, last one