org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 3. C:\tmp\aaa.groovy ^ 1 error

qos.ch | 4 months ago
  1. 0

    [logback-user] Groovy Configuration

    qos.ch | 4 months ago
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 3. C:\tmp\aaa.groovy ^ 1 error
  2. 0

    gremin.sh: unable to resolve class OrientGraph

    Google Groups | 4 years ago | Zhemin Lin
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: groovysh_evaluate: 42: unable to resolve class OrientGraph @ line 42, column 5. g = new OrientGraph("remote:localhost/mr"); ^ 1 error
  3. 0

    Looked for this in JIRA for a bit and found https://issues.jenkins-ci.org/browse/JENKINS-16862 which is *close* to the issue I'm seeing, but not sure if really a dupe. After upgrade to 1.502, hudson.tasks.Mailer.UserProperty is unresolvable in a groovy script which emails the user (LDAP) who kicked off the job. Stack dump is: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /mnt/cns/DeviceMgmt/jenkins/scripts/JenkinsEmailer.groovy: 50: unable to resolve class hudson.tasks.Mailer.UserProperty @ line 50, column 37. if (userProp instanceof hudson.tasks.Mailer.UserProperty) ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:858) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:497) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:283) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:197) at groovy.lang.GroovyClassLoader$parseClass.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script1.run(Script1.groovy:11) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at groovy.lang.Script.evaluate(Script.java:208) at groovy.lang.Script$evaluate.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at Script1.run(Script1.groovy:14) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:276) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:814) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:786) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:733) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 4 years ago | fuck you
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /mnt/cns/DeviceMgmt/jenkins/scripts/JenkinsEmailer.groovy: 50: unable to resolve class hudson.tasks.Mailer.UserProperty @ line 50, column 37. if (userProp instanceof hudson.tasks.Mailer.UserProperty) ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    exception while setting anthill.api_server

    GitHub | 2 years ago | tcondit
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script1419211065201627100637.groovy: 1: [anthill.api_server] is a constant expression, but it should be a variable expression at line: 1 column: 21. File: script1419211065201627100637.groovy @ line 1, column 21. 'anthill.api_server'='my.ahpserver.com' ^ 1 error
  6. 0

    Since upgrading to version 1.35 I'm getting this anywhere I specify an alternate workspace for the plugin. The ^ in the error message is pointing to the first \ after D:\. FATAL: startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 11. return "D:\Workflow\Environments\DevAgile\Global\core" ^ 1 error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 11. return "D:\Workflow\Environments\DevAgile\Global\core" ^ 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 groovy.lang.GroovyShell.evaluate(GroovyShell.java:578) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at hudson.scm.IntegrityCheckpointAction.evalGroovyExpression(IntegrityCheckpointAction.java:79) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:791) at hudson.model.AbstractProject.checkout(AbstractProject.java:1277) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 1 year ago | Rich Hopkins
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 1: unexpected char: '\' @ line 1, column 11. return "D:\Workflow\Environments\DevAgile\Global\core" ^ 1 error

  1. kkandda 1 times, last 6 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: Script1.groovy: 1: unexpected char: '\' @ line 1, column 3. C:\tmp\aaa.groovy ^ 1 error

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
  2. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)
    2. org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:143)
    3. org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:113)
    4. org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:125)
    5. org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:353)
    6. org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:99)
    7. org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:71)
    8. org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:249)
    9. org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:160)
    10. org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:845)
    11. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:521)
    12. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:497)
    13. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:474)
    14. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:292)
    15. groovy.lang.GroovyShell.parseClass(GroovyShell.java:727)
    16. groovy.lang.GroovyShell.parse(GroovyShell.java:739)
    17. groovy.lang.GroovyShell.parse(GroovyShell.java:766)
    18. groovy.lang.GroovyShell.parse(GroovyShell.java:757)
    19. groovy.lang.GroovyShell$parse.call(Unknown Source)
    20. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
    21. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
    22. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    22 frames
  3. Logback Classic Module
    GafferConfigurator.run
    1. ch.qos.logback.classic.gaffer.GafferConfigurator.run(GafferConfigurator.groovy:47)
    1 frame
  4. test
    test3.main
    1. test.test3.run(test3.java:34)
    2. test.test3.main(test3.java:61)
    2 frames