java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When starting a headless slave, sometimes (reproducible, but not 100% of the times) I'm getting the following stack trace in the agent: C:\JENKINS>java -jar slave.jar -jnlpUrl http://jenkins.spotify.net/computer/VM_WIN_XP_X86-080/slave-agent.jnlp Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://jenkins.spotify.net/, http://jenkins.spotify.net:8080/] Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to jenkins.spotify.net:34865 Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 22, 2013 2:23:56 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar b35ef3e93ba517eae00e97270be7dade java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:58 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6deea5b8153f06bb41ca0dd44f964c46 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:58 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar c288f0abccdd353100c65c8378f5e864 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 2621808a575ba554f897c0f7b1c59f32 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar db8a4df2e81a8cad5ce8ffdc86eb96d0 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 04d04f08030b7ff8337135f2fe2724a7 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6c9cb13e6476515c5d2744911770081c java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 5ed1268cbe69f4cbda625237fa50c56a java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar f2b017bb6ab6889e7d0f0eb9bd654c6a java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar ca6fbc12eeb6347f4a390fbdc1809c15 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 9a60c9bc211b25f0804489e2ba73e3fa java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 0b9128b93969d70887e94ab24f1f6584 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar e5dc783b43472e79f6d87efd0d91b3fc java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 238ba2515c6e717a4e75e713051807d9 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6fc00384589a5eeea962787fe3f59119 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:31:18 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 01c76ae3dc6e491e01ca5249eefeb74c java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Debugging the code it led me to https://github.com/jenkinsci/remoting/blob/master/src/main/java/hudson/remoting/JarCacheSupport.java, which seems to suggest that there's some kind of failure when trying to reach remote JARs and there's no correct retry mechanism implemented. After this failure, the connection between Jenkins master and the slave seems to be up and running, but no remote commands can be executed in the slave, so we end up with a useless slave.
    via by Santiago Gallego,
  • When starting a headless slave, sometimes (reproducible, but not 100% of the times) I'm getting the following stack trace in the agent: C:\JENKINS>java -jar slave.jar -jnlpUrl http://jenkins.spotify.net/computer/VM_WIN_XP_X86-080/slave-agent.jnlp Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://jenkins.spotify.net/, http://jenkins.spotify.net:8080/] Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to jenkins.spotify.net:34865 Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 22, 2013 2:23:53 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 22, 2013 2:23:56 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar b35ef3e93ba517eae00e97270be7dade java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:58 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6deea5b8153f06bb41ca0dd44f964c46 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:58 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar c288f0abccdd353100c65c8378f5e864 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 2621808a575ba554f897c0f7b1c59f32 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar db8a4df2e81a8cad5ce8ffdc86eb96d0 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 04d04f08030b7ff8337135f2fe2724a7 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6c9cb13e6476515c5d2744911770081c java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 5ed1268cbe69f4cbda625237fa50c56a java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar f2b017bb6ab6889e7d0f0eb9bd654c6a java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:23:59 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar ca6fbc12eeb6347f4a390fbdc1809c15 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 9a60c9bc211b25f0804489e2ba73e3fa java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 0b9128b93969d70887e94ab24f1f6584 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar e5dc783b43472e79f6d87efd0d91b3fc java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 238ba2515c6e717a4e75e713051807d9 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:24:00 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 6fc00384589a5eeea962787fe3f59119 java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Oct 22, 2013 2:31:18 PM hudson.remoting.JarCacheSupport$1 run WARNING: Failed to resolve a jar 01c76ae3dc6e491e01ca5249eefeb74c java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Debugging the code it led me to https://github.com/jenkinsci/remoting/blob/master/src/main/java/hudson/remoting/JarCacheSupport.java, which seems to suggest that there's some kind of failure when trying to reach remote JARs and there's no correct retry mechanism implemented. After this failure, the connection between Jenkins master and the slave seems to be up and running, but no remote commands can be executed in the slave, so we end up with a useless slave.
    via by Santiago Gallego,
  • Build failed in Jenkins: sling-trunk-1.7 #432
    via by Apache Jenkins Server,
  • Build failed in Jenkins: sling-trunk-1.6 #2063
    via by Apache Jenkins Server,
  • Recently we're extremely suffering from different weird errors of Apache Camel builds. In many cases Jenkins says "Ping time out" and gives up the build process so we end up again & again with broken and incomplete builds shown with red bubbles, following two examples: https://builds.apache.org/job/Camel.trunk.fulltest/1324/console https://builds.apache.org/job/Camel.trunk.fulltest.java7/591/console And the corresponding Jenkins output in console: U camel-core/pom.xml U tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java FATAL: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown at hudson.remoting.Request.call(Request.java:174) at hudson.remoting.Channel.call(Channel.java:672) at hudson.FilePath.act(FilePath.java:854) at hudson.FilePath.act(FilePath.java:838) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:743) ... Or sometimes the build ends up with some wired Jenkins internal errors as you see here: https://builds.apache.org/job/Camel.trunk.fulltest.java7/582/console And the corresponding Jenkins output in console: [JENKINS] Archiving disabled [JENKINS] Archiving disabled Waiting for Jenkins to finish collecting data mavenExecutionResult exceptions not empty message : Internal error: java.lang.reflect.UndeclaredThrowableException cause : null Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.reflect.UndeclaredThrowableException at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) No idea if all these has to do with the recent Jenkins upgrades @ INFRA. In all cases this is really annoying and currently almost all our builds end up with red bubbles.
    via by Babak Vahdat,
    • java.lang.IllegalStateException: Unable to call writeJarTo. Invalid object ID 2 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:293) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
    No Bugmate found.