org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 1 error

Jenkins JIRA | Kenneth Baltrinic | 2 years ago
  1. 0

    We manage our Jenkins infrastructure via Chef which is configured to automatically upgrade the machines to the latest LTS version when it comes out. Chef runs on each machine every 30 min. Immediately following the latest LTS release to 1.596.3, our chef runs started failing frequently but intermittently (about 50% of the time). The run fails at the point where we use the jenkins-cli groovy to configure certain properties of the mailer by means of running a script. The script template looks like the following: {code:java} import jenkins.model.* def inst = Jenkins.getInstance() def desc = inst.getDescriptor('hudson.tasks.Mailer') desc.setSmtpHost("#{node['cvent-jenkins']['email-ext-plugin']['host']}") desc.setDefaultSuffix("#{node['cvent-jenkins']['email-ext-plugin']['defaultSuffix']}") desc.setReplyToAddress("#{node['cvent-jenkins']['email-ext-plugin']['replyTo']}") desc.save() {code} The exception we are seeing is as follows: Note that the referenced jar (/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar) is present in the location specified in the error report. {noformat} ---- Begin output of "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb ---- STDOUT: STDERR: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 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.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.run(GroovyShell.java:516) at hudson.cli.GroovyCommand.run(GroovyCommand.java:94) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:326) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ---- End output of "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb ---- Ran "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb returned 255 {noformat} We have attempted to reproduce the problem by running the same script in the groovy console but have not encountered the error under those conditions.

    Jenkins JIRA | 2 years ago | Kenneth Baltrinic
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 1 error
  2. 0

    We manage our Jenkins infrastructure via Chef which is configured to automatically upgrade the machines to the latest LTS version when it comes out. Chef runs on each machine every 30 min. Immediately following the latest LTS release to 1.596.3, our chef runs started failing frequently but intermittently (about 50% of the time). The run fails at the point where we use the jenkins-cli groovy to configure certain properties of the mailer by means of running a script. The script template looks like the following: {code:java} import jenkins.model.* def inst = Jenkins.getInstance() def desc = inst.getDescriptor('hudson.tasks.Mailer') desc.setSmtpHost("#{node['cvent-jenkins']['email-ext-plugin']['host']}") desc.setDefaultSuffix("#{node['cvent-jenkins']['email-ext-plugin']['defaultSuffix']}") desc.setReplyToAddress("#{node['cvent-jenkins']['email-ext-plugin']['replyTo']}") desc.save() {code} The exception we are seeing is as follows: Note that the referenced jar (/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar) is present in the location specified in the error report. {noformat} ---- Begin output of "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb ---- STDOUT: STDERR: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 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.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.run(GroovyShell.java:516) at hudson.cli.GroovyCommand.run(GroovyCommand.java:94) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:326) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ---- End output of "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb ---- Ran "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://localhost:8080 -i "/var/chef/cache/jenkins-key" groovy /tmp/groovy20150521-23664-y63ckb returned 255 {noformat} We have attempted to reproduce the problem by running the same script in the groovy console but have not encountered the error under those conditions.

    Jenkins JIRA | 2 years ago | Kenneth Baltrinic
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 1 error
  3. 0

    PR #467 broke puppet_cli_helper

    GitHub | 10 months ago | rvincentatprokarmadotcom
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: RemoteClass: 668: unable to resolve class FileCredentialsImpl @ line 668, column 16. cred = new FileCredentialsImpl( ^ 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug when it tries puppet-jenkins tries to create a user

    GitHub | 10 months ago | Asher256
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: RemoteClass: 668: unable to resolve class FileCredentialsImpl @ line 668, column 16. cred = new FileCredentialsImpl( ^ 1 error
  6. 0

    GitHub comment 467#174036413

    GitHub | 10 months ago | rvincentatprokarmadotcom
    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: RemoteClass: 668: unable to resolve class FileCredentialsImpl @ line 668, column 16. cred = new FileCredentialsImpl( ^ 1 error

  1. rlovtangen 2 times, last 2 months ago
  2. Cafecanudo 22 times, last 3 months ago
  3. tfr 2 times, last 5 months ago
1 unregistered visitors
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: IO Exception attempting to load global transforms:/var/lib/jenkins/plugins/email-ext/WEB-INF/lib/groovy-all-1.8.5.jar (No such file or directory) 1 error

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors()
  2. Groovy
    GroovyShell.run
    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.lang.GroovyShell.parseClass(GroovyShell.java:731)
    8. groovy.lang.GroovyShell.run(GroovyShell.java:516)
    8 frames
  3. Hudson
    CliManagerImpl.main
    1. hudson.cli.GroovyCommand.run(GroovyCommand.java:94)
    2. hudson.cli.CLICommand.main(CLICommand.java:237)
    3. hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:483)
    4 frames
  5. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:326)
    2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301)
    3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260)
    4. hudson.remoting.UserRequest.perform(UserRequest.java:121)
    5. hudson.remoting.UserRequest.perform(UserRequest.java:49)
    6. hudson.remoting.Request$2.run(Request.java:324)
    7. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    7 frames
  6. Hudson
    CliManagerImpl$1.call
    1. hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
    1 frame
  7. Hudson :: Remoting Layer
    CallableDecoratorList$1.call
    1. hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
    2. hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    2 frames
  8. jenkins.util
    ContextResettingExecutorService$2.call
    1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    1 frame
  9. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames