hudson.util.IOException2: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1

Jenkins JIRA | Joe Keslin | 1 year ago
  1. 0

    I have a scripts directory in my /var/lib/jenkins/userContent folder that I want copied to the slave. I checked the "Copy files into the job's workspace before building" option and then added the value of 'scripts/**' to the "Files to copy" setting. When I run, I get this error. This used to work when I had Ubuntu slaves, but we recently changed over to RHEL. (See Environment details for rhel slave info) Here's the error I'm getting: [copy-to-slave] Copying 'scripts/**', excluding nothing, from 'file:/var/lib/jenkins/userContent/' on the master to 'file:/var/www/jenkins-slave/workspace/backup_core/' on 'test3.company.com'. FATAL: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 hudson.util.IOException2: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:147) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:133) at hudson.model.Build$BuildExecution.doRun(Build.java:153) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:145) ... 7 more Caused by: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at hudson.remoting.JarCacheSupport.resolve(JarCacheSupport.java:59) at hudson.remoting.ResourceImageBoth.initiateJarRetrieval(ResourceImageBoth.java:40) at hudson.remoting.ResourceImageBoth.resolve(ResourceImageBoth.java:22) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:233) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: hudson.remoting.JarCacheSupport$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 27 more Caused by: java.util.zip.ZipException: error reading zip file at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:56) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:479) at sun.misc.Resource.getBytes(Resource.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:444) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ... 33 more

    Jenkins JIRA | 1 year ago | Joe Keslin
    hudson.util.IOException2: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1
  2. 0

    I have a scripts directory in my /var/lib/jenkins/userContent folder that I want copied to the slave. I checked the "Copy files into the job's workspace before building" option and then added the value of 'scripts/**' to the "Files to copy" setting. When I run, I get this error. This used to work when I had Ubuntu slaves, but we recently changed over to RHEL. (See Environment details for rhel slave info) Here's the error I'm getting: [copy-to-slave] Copying 'scripts/**', excluding nothing, from 'file:/var/lib/jenkins/userContent/' on the master to 'file:/var/www/jenkins-slave/workspace/backup_core/' on 'test3.company.com'. FATAL: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 hudson.util.IOException2: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:147) at com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper.setUp(CopyToSlaveBuildWrapper.java:133) at hudson.model.Build$BuildExecution.doRun(Build.java:153) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at com.michelin.cio.hudson.plugins.copytoslave.MyFilePath.copyRecursiveTo(MyFilePath.java:145) ... 7 more Caused by: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1 at hudson.remoting.JarCacheSupport.resolve(JarCacheSupport.java:59) at hudson.remoting.ResourceImageBoth.initiateJarRetrieval(ResourceImageBoth.java:40) at hudson.remoting.ResourceImageBoth.resolve(ResourceImageBoth.java:22) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:233) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:274) at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: hudson.remoting.JarCacheSupport$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 27 more Caused by: java.util.zip.ZipException: error reading zip file at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:56) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:479) at sun.misc.Resource.getBytes(Resource.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:444) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ... 33 more

    Jenkins JIRA | 1 year ago | Joe Keslin
    hudson.util.IOException2: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: hudson/remoting/JarCacheSupport$1
  3. 0

    ClassNotFoundException is magically unchecked

    Stack Overflow | 1 year ago | kevinarpe
    java.lang.ClassNotFoundException: xyz
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GBS2 GBSSeqToTagDBPlugin SQLite error

    Google Groups | 9 months ago | Alex Twyford
    java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/sqlite/SQLiteJDBCLoader

  1. archenroot 1 times, last 1 week ago
  2. tyson925 5 times, last 2 weeks ago
  3. tzrlk 1 times, last 2 weeks ago
  4. musketyr 1 times, last 2 weeks ago
  5. kjhdofjosvs 3 times, last 3 weeks ago
63 more registered users
32 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. java.util.zip.ZipException

    error reading zip file

    at java.util.zip.ZipFile.read()
  2. Java RT
    ClassLoader.loadClass
    1. java.util.zip.ZipFile.read(Native Method)
    2. java.util.zip.ZipFile.access$1400(ZipFile.java:56)
    3. java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679)
    4. java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
    5. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
    6. java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:479)
    7. sun.misc.Resource.getBytes(Resource.java:124)
    8. java.net.URLClassLoader.defineClass(URLClassLoader.java:444)
    9. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    10. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    11. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    12. java.security.AccessController.doPrivileged(Native Method)
    13. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    14. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    15. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    16. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    16 frames
  3. Hudson :: Remoting Layer
    RemoteClassLoader.findClass
    1. hudson.remoting.JarCacheSupport.resolve(JarCacheSupport.java:59)
    2. hudson.remoting.ResourceImageBoth.initiateJarRetrieval(ResourceImageBoth.java:40)
    3. hudson.remoting.ResourceImageBoth.resolve(ResourceImageBoth.java:22)
    4. hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:233)
    4 frames
  4. Java RT
    Class.forName
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    3. java.lang.Class.forName0(Native Method)
    4. java.lang.Class.forName(Class.java:274)
    4 frames
  5. Hudson :: Remoting Layer
    MultiClassLoaderSerializer$Input.resolveClass
    1. hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113)
    1 frame
  6. Java RT
    ObjectInputStream.readObject
    1. java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612)
    2. java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
    3. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
    4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
    5. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
    6. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
    7. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
    8. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
    9. java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    9 frames
  7. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:98)
    3. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    4. hudson.remoting.Request$2.run(Request.java:328)
    5. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    5 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames