org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: ____Eval.groovy: 17: unexpected token: . @ line 17, column 15. class codehaus.groovy.eclipse.test.actions.NoChoiceQuery{ } ^ 1 error

SpringSource Issue Tracker | Andrew Eisenberg (c) | 5 years ago
  1. 0

    When doing a debug evaluation inside of {{org.codehaus.groovy.eclipse.test.actions.AbstractOrganizeImportsTest}} in the Groovy-Eclipse code base, I keep getting the following problem with the evaluation: {code} org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: ____Eval.groovy: 17: unexpected token: . @ line 17, column 15. class codehaus.groovy.eclipse.test.actions.NoChoiceQuery{ } ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:306) at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:153) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:123) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:135) at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:386) at org.codehaus.groovy.antlr.ErrorRecoveredCSTParserPlugin.transformCSTIntoAST(ErrorRecoveredCSTParserPlugin.java:91) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:76) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:264) at org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:181) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:953) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:584) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:560) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:537) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287) at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.convertSnippetToScript(GroovyJDIEvaluator.java:332) at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.performEvaluate(GroovyJDIEvaluator.java:170) at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1$1.run(GroovyJDIEvaluator.java:148) at org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:688) at com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1.run(GroovyJDIEvaluator.java:153) at org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2805) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Looks like there is a problem with the other classes in the file and this is causing a compile error in the generated compilation unit.

    SpringSource Issue Tracker | 5 years ago | Andrew Eisenberg (c)
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: ____Eval.groovy: 17: unexpected token: . @ line 17, column 15. class codehaus.groovy.eclipse.test.actions.NoChoiceQuery{ } ^ 1 error
  2. 0

    bbb-web development environment compile error

    Google Groups | 5 years ago | SLS
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /home/firstuser/.gradle/scriptCache/init_gradle_233d969b80631dc2dd90abebc5d65442/InitScriptClasspathScriptTransformer/init_gradle_233d969b80631dc2dd90abebc5d65442.class (No such file or directory) 1 error
  3. 0

    Grails 3.1.x GSON View Compilation Error

    GitHub | 9 months ago | ctoestreich
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: bsb_content_service_application_serverError_gson: -1: unable to resolve class org$springframework$http$HttpStatus @ line -1, column -1. 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Grails 3.1.x GSON View Compilation Error

    GitHub | 9 months ago | ctoestreich
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is grails.views.ViewCompilationException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: bsb_content_service_application_serverError_gson: -1: unable to resolve class org$springframework$http$HttpStatus @ line -1, column -1. 1 error
  6. 0

    views prvoded by plugin now can be loaded in application, but if those views're using some layout(for example, layout/main.gsp), grails will throw 500 error with the following message:"Could not parse script: /WEB-INF/grails-app/views/layouts/main.gsp". The layout file works fine while rendering views provided by application. My error stacktrace dump: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, WEB-INF/grails-app/views/layouts/main.gsp: 77: unexpected token: null @ line 77, column 1. 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:326) at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:173) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:143) at org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:155) at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:382) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:87) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:279) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:184) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:833) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:480) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:306) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:275) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:270) at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.newPage(GroovyPagesTemplateEngine.java:293) at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.getPage(GroovyPagesTemplateEngine.java:254) at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.createTemplate(GroovyPagesTemplateEngine.java:164) at org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine.createTemplate(GroovyPagesTemplateEngine.java:142) at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.doPage(GroovyPagesServlet.java:143) at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.doGet(GroovyPagesServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:280) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171) at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.applyDecorator(GrailsPageFilter.java:75) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:62) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:53) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

    Grails JIRA | 10 years ago | Shawn Chain
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, WEB-INF/grails-app/views/layouts/main.gsp: 77: unexpected token: null @ line 77, column 1. 1 error
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: ____Eval.groovy: 17: unexpected token: . @ line 17, column 15. class codehaus.groovy.eclipse.test.actions.NoChoiceQuery{ } ^ 1 error

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
  2. Groovy
    GroovyClassLoader.parseClass
    1. org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:306)
    2. org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:153)
    3. org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:123)
    4. org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:135)
    5. org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:386)
    6. org.codehaus.groovy.antlr.ErrorRecoveredCSTParserPlugin.transformCSTIntoAST(ErrorRecoveredCSTParserPlugin.java:91)
    7. org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:76)
    8. org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:264)
    9. org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:181)
    10. org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:953)
    11. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:584)
    12. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:560)
    13. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:537)
    14. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
    15. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287)
    15 frames
  3. com.springsource.sts
    GroovyJDIEvaluator$1$1.run
    1. com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.convertSnippetToScript(GroovyJDIEvaluator.java:332)
    2. com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator.performEvaluate(GroovyJDIEvaluator.java:170)
    3. com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1$1.run(GroovyJDIEvaluator.java:148)
    3 frames
  4. org.eclipse.jdt
    JDIThread.runEvaluation
    1. org.eclipse.jdt.internal.debug.core.model.JDIThread.runEvaluation(JDIThread.java:688)
    1 frame
  5. com.springsource.sts
    GroovyJDIEvaluator$1.run
    1. com.springsource.sts.groovy.debug.core.evaluation.GroovyJDIEvaluator$1.run(GroovyJDIEvaluator.java:153)
    1 frame
  6. org.eclipse.jdt
    JDIThread$ThreadJob.run
    1. org.eclipse.jdt.internal.debug.core.model.JDIThread$ThreadJob.run(JDIThread.java:2805)
    1 frame
  7. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    1 frame