hudson.util.IOException2: remote file operation failed: /home/builduser/workspace/xunit tester at hudson.remoting.Channel@7c6159c4:dlpbsd62-32-d1.net

Jenkins JIRA | Alex Gray | 5 years ago
  1. 0

    We are using xUnit 1.29 on all our build machine and they all work fine except on our FreeBSD slave machines. The exception is as follows (using a simple test xml file... any sample xml can be used... they all fail on our FreeBSD machines): ================================================================================= [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing BoostTest-1.x (default) ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: /home/builduser/workspace/xunit tester at hudson.remoting.Channel@7c6159c4:dlpbsd62-32-d1.net at hudson.FilePath.act(FilePath.java:781) at hudson.FilePath.act(FilePath.java:767) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:164) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:112) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException: Remote call on dlpbsd62-32-d1.na.rsa.net failed at hudson.remoting.Channel.call(Channel.java:690) at hudson.FilePath.act(FilePath.java:774) ... 14 more Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:142) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:48) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at hudson.remoting.UserRequest.deserialize(UserRequest.java:178) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Finished: FAILURE ================================================================================= I suspect the problem lies in the Java version on the slave machine, because we were using version 1.10 of xunit and it worked fine. If any additional information is needed ,please let me know.

    Jenkins JIRA | 5 years ago | Alex Gray
    hudson.util.IOException2: remote file operation failed: /home/builduser/workspace/xunit tester at hudson.remoting.Channel@7c6159c4:dlpbsd62-32-d1.net
  2. 0

    We are using xUnit 1.29 on all our build machine and they all work fine except on our FreeBSD slave machines. The exception is as follows (using a simple test xml file... any sample xml can be used... they all fail on our FreeBSD machines): ================================================================================= [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing BoostTest-1.x (default) ERROR: Publisher com.thalesgroup.hudson.plugins.xunit.XUnitPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: /home/builduser/workspace/xunit tester at hudson.remoting.Channel@7c6159c4:dlpbsd62-32-d1.net at hudson.FilePath.act(FilePath.java:781) at hudson.FilePath.act(FilePath.java:767) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:164) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:112) at com.thalesgroup.hudson.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:89) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:694) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:669) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:647) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:616) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException: Remote call on dlpbsd62-32-d1.na.rsa.net failed at hudson.remoting.Channel.call(Channel.java:690) at hudson.FilePath.act(FilePath.java:774) ... 14 more Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:142) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:48) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at hudson.remoting.UserRequest.deserialize(UserRequest.java:178) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Finished: FAILURE ================================================================================= I suspect the problem lies in the Java version on the slave machine, because we were using version 1.10 of xunit and it worked fine. If any additional information is needed ,please let me know.

    Jenkins JIRA | 5 years ago | Alex Gray
    hudson.util.IOException2: remote file operation failed: /home/builduser/workspace/xunit tester at hudson.remoting.Channel@7c6159c4:dlpbsd62-32-d1.net
  3. 0

    Eclipse Community Forums: Hudson ยป Hudson 2.2.1 failed to launch the slave agent

    eclipse.org | 1 year ago
    hudson.util.IOException2: remote file operation failed: /export/home1/hudson_sandbox/maven/slavebundle at :sparc-S2-10-buba
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    in order to fix the memory leaks in the bundled subversion plugin we have upgraded the subversion plugin to 1.24. However this causes all subversion builds on the solaris machine to fail (the default jdk for the solaris 10 box is java 5 which is what hudson uses to launch the slave agent.) {noformat} Started by user xxx Building remotely on jenkins-slave-sol101 hudson.util.IOException2: remote file operation failed: /path/to/workspace/job_commit at hudson.remoting.Channel@1b523bd4:jenkins-slave-sol10 at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:739) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:683) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:632) at hudson.model.AbstractProject.checkout(AbstractProject.java:1182) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:441) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.IOException: Remote call on jenkins-slave-sol10 failed at hudson.remoting.Channel.call(Channel.java:639) at hudson.FilePath.act(FilePath.java:746) ... 10 more Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:131) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2259) at java.lang.Class.getDeclaredField(Class.java:1852) at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582) at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at hudson.remoting.UserRequest.deserialize(UserRequest.java:178) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:595) Sending e-mails to: xxx@xxx.xx Finished: FAILURE {noformat} As jenkins has no dependency on java 6 - the subversion plugin shouldn't either - or it should say so in a nice way and make it clear.

    Jenkins JIRA | 6 years ago | James Nord
    hudson.util.IOException2: remote file operation failed: /path/to/workspace/job_commit at hudson.remoting.Channel@1b523bd4:jenkins-slave-sol10
  6. 0

    I was attempting to run hudson inside a copy of Tomcat 6 using JDK 1.6 on Ubuntu 8.10 and run a Maven 2 build with JDK 1.5. As soon as hudson tried to archive the first pom encountered it blows up with the stack trace: [INFO] Trace java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.ClassLoader.defineClass(ClassLoader.java:465) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:96) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at hudson.FilePath.act(FilePath.java:434) at hudson.FilePath.copyTo(FilePath.java:869) at hudson.FilePath.copyTo(FilePath.java:857) at hudson.maven.reporters.MavenArtifact.archive(MavenArtifact.java:184) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:107) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:612) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:307) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:265) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:158) at hudson.maven.MavenBuilder.call(MavenBuilder.java:162) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:579) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:525) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) The reason is that on Ubuntu 8.10 they compile Tomcat 6 on JDK 1.6 so all the tomcat classfiles have a version requirement of 50 (JDK 1.6). It seems that the classloader of the servlet container is used during the maven build which causes this issue. I wouldn't have expected the build to have access to any classes of the container that is was running in.

    Jenkins JIRA | 8 years ago | Matthew Buckett
    java.lang.UnsupportedClassVersionError: Bad version number in .class file

    14 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.lang.UnsupportedClassVersionError

      Bad version number in .class file

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      3. java.lang.ClassLoader.defineClass(ClassLoader.java:465)
      3 frames
    3. Hudson :: Remoting Layer
      RemoteClassLoader.findClass
      1. hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:151)
      2. hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:142)
      2 frames
    4. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      4. java.lang.Class.forName0(Native Method)
      5. java.lang.Class.forName(Class.java:242)
      5 frames
    5. Hudson :: Remoting Layer
      ObjectInputStreamEx.resolveClass
      1. hudson.remoting.ObjectInputStreamEx.resolveClass(ObjectInputStreamEx.java:48)
      1 frame
    6. Java RT
      ObjectInputStream.readObject
      1. java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
      2. java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
      3. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
      4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      5. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
      6. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
      7. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
      8. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      9. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
      10. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
      11. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
      12. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      13. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
      14. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
      15. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
      16. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      17. java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      17 frames
    7. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.deserialize(UserRequest.java:178)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:98)
      3. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      4. hudson.remoting.Request$2.run(Request.java:270)
      4 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:123)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      6. java.lang.Thread.run(Thread.java:595)
      6 frames