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

Jenkins JIRA | Matt Sheehan | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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

    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