java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation 1 error

Jenkins JIRA | Matt Sheehan | 2 years ago
  1. 0

    1. run "./gradlew server" with the latest master 2. create a seed job with a simple script: job { name 'test' } 3. run the job 4. get the following error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Could not instantiate global transform class groovy.grape.GrabAnnotationTransformation specified at jar:file:/Users/sheehan/dev/project/job-dsl-plugin/work/war/WEB-INF/lib/groovy-all-1.8.9.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.ProcessingUnit.completePhase(ProcessingUnit.java:143) at org.codehaus.groovy.control.ProcessingUnit.gotoPhase(ProcessingUnit.java:162) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:493) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.util.GroovyScriptEngine$ScriptClassLoader.doParseClass(GroovyScriptEngine.java:258) at groovy.util.GroovyScriptEngine$ScriptClassLoader.parseClass(GroovyScriptEngine.java:240) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:214) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:224) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:58) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:91) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:199) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585) at hudson.model.Run.execute(Run.java:1684) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Jenkins JIRA | 2 years ago | Matt Sheehan
    java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation 1 error
  2. 0

    1. run "./gradlew server" with the latest master 2. create a seed job with a simple script: job { name 'test' } 3. run the job 4. get the following error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Could not instantiate global transform class groovy.grape.GrabAnnotationTransformation specified at jar:file:/Users/sheehan/dev/project/job-dsl-plugin/work/war/WEB-INF/lib/groovy-all-1.8.9.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302) at org.codehaus.groovy.control.ProcessingUnit.completePhase(ProcessingUnit.java:143) at org.codehaus.groovy.control.ProcessingUnit.gotoPhase(ProcessingUnit.java:162) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:493) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.util.GroovyScriptEngine$ScriptClassLoader.doParseClass(GroovyScriptEngine.java:258) at groovy.util.GroovyScriptEngine$ScriptClassLoader.parseClass(GroovyScriptEngine.java:240) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:214) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:224) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:58) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:91) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:199) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585) at hudson.model.Run.execute(Run.java:1684) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231)

    Jenkins JIRA | 2 years ago | Matt Sheehan
    java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation 1 error
  3. 0

    antlr version

    Google Groups | 4 years ago | Pavel Tavoda
    java.lang.ClassNotFoundException: >> org.antlr.runtime.RecognizerSharedState >> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    antlr version

    Google Groups | 4 years ago | Pavel Tavoda
    java.lang.ClassNotFoundException: >>> org.antlr.runtime.RecognizerSharedState >>> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  6. 0

    antlr version

    Google Groups | 4 years ago | Pavel Tavoda
    java.lang.ClassNotFoundException: > org.antlr.runtime.RecognizerSharedState > [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

    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. java.lang.ClassNotFoundException

      groovy.grape.GrabAnnotationTransformation 1 error

      at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
    2. Groovy
      GroovyClassLoader.parseClass
      1. org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
      2. org.codehaus.groovy.control.ProcessingUnit.completePhase(ProcessingUnit.java:143)
      3. org.codehaus.groovy.control.ProcessingUnit.gotoPhase(ProcessingUnit.java:162)
      4. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:493)
      5. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302)
      6. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
      7. groovy.util.GroovyScriptEngine$ScriptClassLoader.doParseClass(GroovyScriptEngine.java:258)
      8. groovy.util.GroovyScriptEngine$ScriptClassLoader.parseClass(GroovyScriptEngine.java:240)
      9. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
      10. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:214)
      11. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:224)
      11 frames
    3. javaposse.jobdsl.dsl
      DslScriptLoader.runDslEngine
      1. javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:58)
      2. javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:91)
      2 frames
    4. javaposse.jobdsl.plugin
      ExecuteDslScripts.perform
      1. javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:199)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.Build$BuildExecution.build(Build.java:199)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
      6. hudson.model.Run.execute(Run.java:1684)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:231)
      9 frames