java.lang.reflect.InvocationTargetException

Jenkins JIRA | Michael Rumpf | 3 years ago
  1. 0

    After the upgrade from Jenkins 1.515 to Jenkins 1.518 one of our Maven projects failed due to a ClassFormatException: {code} 23:13:30 [JENKINS] Archiving site from /export/build/jenkins-slave/workspace/xxx-nightly-trunk/target/site to /export/build/jenkins/jobs/xxx-nightly-trunk/site 23:13:37 java.lang.reflect.InvocationTargetException 23:13:37 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 23:13:37 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 23:13:37 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 23:13:37 at java.lang.reflect.Method.invoke(Method.java:592) 23:13:37 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 23:13:37 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 23:13:37 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 23:13:37 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 23:13:37 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 23:13:37 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 23:13:37 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 23:13:37 at hudson.remoting.Request$2.run(Request.java:326) 23:13:37 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 23:13:37 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) 23:13:37 at java.util.concurrent.FutureTask.run(FutureTask.java:123) 23:13:37 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) 23:13:37 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) 23:13:37 at java.lang.Thread.run(Thread.java:595) 23:13:37 Caused by: java.lang.ClassFormatError: Failed to load jnr.ffi.mapper.FunctionMapper 23:13:37 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) 23:13:37 at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) 23:13:37 at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 23:13:37 at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 23:13:37 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) 23:13:37 at hudson.os.PosixAPI.jnr(PosixAPI.java:30) 23:13:37 at hudson.util.IOUtils.mode(IOUtils.java:125) 23:13:37 at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) 23:13:37 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) 23:13:37 at hudson.FilePath.writeToTar(FilePath.java:1979) 23:13:37 at hudson.FilePath.copyRecursiveTo(FilePath.java:1905) 23:13:37 at hudson.FilePath.copyRecursiveTo(FilePath.java:1832) 23:13:37 at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:82) 23:13:37 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:453) 23:13:37 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:435) 23:13:37 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 23:13:37 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 23:13:37 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 23:13:37 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 23:13:37 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 23:13:37 ... 18 more 23:13:37 Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file 23:13:37 at java.lang.ClassLoader.defineClass1(Native Method) 23:13:37 at java.lang.ClassLoader.defineClass(ClassLoader.java:621) 23:13:37 at java.lang.ClassLoader.defineClass(ClassLoader.java:466) 23:13:37 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) 23:13:37 ... 44 more 23:13:37 channel stopped 23:13:38 ERROR: Failed to parse POMs {code} The issue can be found in the call stack: The Jenkins slave calls the Maven launcher and and the Maven launcher does a callback into the Jenkins code to perform some IO operations. For those operations, the jnr-ffi library is used and this has been compiled on the 8th of June under OpenJDK 6 and under Oracle JDK 7: https://travis-ci.org/jnr/jnr-ffi The pom.xml of the library has no compiler plugin configuration and thus creates code for whatever JDK it runs on (Java 6 class version 50) and I assume that this new version of the library has been pulled in between 1.516 and 1.518 of Jenkins. That means this new version of the jnr-ffi library drops Java 5 support for certain Maven builds.

    Jenkins JIRA | 3 years ago | Michael Rumpf
    java.lang.reflect.InvocationTargetException
  2. 0

    After the upgrade from Jenkins 1.515 to Jenkins 1.518 one of our Maven projects failed due to a ClassFormatException: {code} 23:13:30 [JENKINS] Archiving site from /export/build/jenkins-slave/workspace/xxx-nightly-trunk/target/site to /export/build/jenkins/jobs/xxx-nightly-trunk/site 23:13:37 java.lang.reflect.InvocationTargetException 23:13:37 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 23:13:37 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 23:13:37 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 23:13:37 at java.lang.reflect.Method.invoke(Method.java:592) 23:13:37 at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) 23:13:37 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) 23:13:37 at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) 23:13:37 at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) 23:13:37 at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) 23:13:37 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 23:13:37 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 23:13:37 at hudson.remoting.Request$2.run(Request.java:326) 23:13:37 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 23:13:37 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) 23:13:37 at java.util.concurrent.FutureTask.run(FutureTask.java:123) 23:13:37 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) 23:13:37 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) 23:13:37 at java.lang.Thread.run(Thread.java:595) 23:13:37 Caused by: java.lang.ClassFormatError: Failed to load jnr.ffi.mapper.FunctionMapper 23:13:37 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) 23:13:37 at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) 23:13:37 at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 23:13:37 at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 23:13:37 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) 23:13:37 at hudson.os.PosixAPI.jnr(PosixAPI.java:30) 23:13:37 at hudson.util.IOUtils.mode(IOUtils.java:125) 23:13:37 at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) 23:13:37 at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) 23:13:37 at hudson.FilePath.writeToTar(FilePath.java:1979) 23:13:37 at hudson.FilePath.copyRecursiveTo(FilePath.java:1905) 23:13:37 at hudson.FilePath.copyRecursiveTo(FilePath.java:1832) 23:13:37 at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:82) 23:13:37 at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:453) 23:13:37 at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:435) 23:13:37 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) 23:13:37 at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 23:13:37 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) 23:13:37 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) 23:13:37 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 23:13:37 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 23:13:37 at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 23:13:37 ... 18 more 23:13:37 Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file 23:13:37 at java.lang.ClassLoader.defineClass1(Native Method) 23:13:37 at java.lang.ClassLoader.defineClass(ClassLoader.java:621) 23:13:37 at java.lang.ClassLoader.defineClass(ClassLoader.java:466) 23:13:37 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) 23:13:37 ... 44 more 23:13:37 channel stopped 23:13:38 ERROR: Failed to parse POMs {code} The issue can be found in the call stack: The Jenkins slave calls the Maven launcher and and the Maven launcher does a callback into the Jenkins code to perform some IO operations. For those operations, the jnr-ffi library is used and this has been compiled on the 8th of June under OpenJDK 6 and under Oracle JDK 7: https://travis-ci.org/jnr/jnr-ffi The pom.xml of the library has no compiler plugin configuration and thus creates code for whatever JDK it runs on (Java 6 class version 50) and I assume that this new version of the library has been pulled in between 1.516 and 1.518 of Jenkins. That means this new version of the jnr-ffi library drops Java 5 support for certain Maven builds.

    Jenkins JIRA | 3 years ago | Michael Rumpf
    java.lang.reflect.InvocationTargetException
  3. 0

    I am configuring GIT with Gerrit event so I select "Choosing strategy" with value "Gerrit Trigger" then I get the following exception (Using value "Default" it works but instead of fetching my changes it fetch the parent branch) Detailed Java Exception: 17:31:41 hudson.util.IOException2: remote file operation failed: /proj/madridhss/jenkins/jobs-lab/GG-CI_1-Main_Prototype at hudson.remoting.Channel@a27760:esekilxxen1816 17:31:41 at hudson.FilePath.act(FilePath.java:901) 17:31:41 at hudson.FilePath.act(FilePath.java:878) 17:31:41 at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:948) 17:31:41 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1114) 17:31:41 at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) 17:31:41 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 17:31:41 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 17:31:41 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 17:31:41 at hudson.model.Run.execute(Run.java:1576) 17:31:41 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 17:31:41 at hudson.model.ResourceController.execute(ResourceController.java:88) 17:31:41 at hudson.model.Executor.run(Executor.java:241) 17:31:41 Caused by: java.io.IOException: Remote call on esekilxxen1816 failed 17:31:41 at hudson.remoting.Channel.call(Channel.java:681) 17:31:41 at hudson.FilePath.act(FilePath.java:894) 17:31:41 ... 11 more 17:31:41 Caused by: java.lang.ClassFormatError: Failed to load com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser 17:31:41 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) 17:31:41 at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) 17:31:41 at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 17:31:41 at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 17:31:41 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) 17:31:41 at java.lang.Class.forName0(Native Method) 17:31:41 at java.lang.Class.forName(Class.java:242) 17:31:41 at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113) 17:31:41 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) 17:31:41 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) 17:31:41 at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) 17:31:41 at hudson.remoting.UserRequest.perform(UserRequest.java:98) 17:31:41 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:31:41 at hudson.remoting.Request$2.run(Request.java:326) 17:31:41 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:31:41 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) 17:31:41 at java.util.concurrent.FutureTask.run(FutureTask.java:123) 17:31:41 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) 17:31:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) 17:31:41 at java.lang.Thread.run(Thread.java:595) 17:31:41 Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file 17:31:41 at java.lang.ClassLoader.defineClass1(Native Method) 17:31:41 at java.lang.ClassLoader.defineClass(ClassLoader.java:621) 17:31:41 at java.lang.ClassLoader.defineClass(ClassLoader.java:466) 17:31:41 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) 17:31:41 ... 34 more

    Jenkins JIRA | 3 years ago | Jacobo Jimenez
    hudson.util.IOException2: remote file operation failed: /proj/madridhss/jenkins/jobs-lab/GG-CI_1-Main_Prototype at hudson.remoting.Channel@a27760:esekilxxen1816
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We hit this issue with Jenkins 1.500 running in Tomcat 7.0.35 with Java 1.7.0_13 and building a project with Java 1.5.0_22: {noformat} ERROR: Failed to parse POMs java.io.IOException: Remote call on Channel to Maven [/home/wlsiadm/.jenkins/tools/hudson.model.JDK/jdk1.5.0_22/bin/java, -Xmx512m, -cp, /home/wlsiadm/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/home/wlsiadm/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /home/wlsiadm/apache-maven-3.0.4, /home/wlsiadm/apache-tomcat-jenkins/webapps/jenkins/WEB-INF/lib/remoting-2.21.jar, /home/wlsiadm/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar, 50473] failed at hudson.remoting.Channel.call(Channel.java:681) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:156) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:755) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.lang.ClassFormatError: Failed to load org.kohsuke.stapler.Stapler at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at hudson.model.Result.<clinit>(Result.java:191) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at $Proxy2.<clinit>(Unknown Source) at sun.reflect.GeneratedSerializationConstructorAccessor39.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:896) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1704) 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 java.util.HashMap.readObject(HashMap.java:1067) 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:592) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1812) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 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: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:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) Caused by: java.lang.ClassFormatError: Failed to load javax.servlet.http.HttpServlet at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) ... 42 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:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) ... 50 more Finished: FAILURE {noformat}

    Jenkins JIRA | 4 years ago | Christian Müller
    java.io.IOException: Remote call on Channel to Maven [/home/wlsiadm/.jenkins/tools/hudson.model.JDK/jdk1.5.0_22/bin/java, -Xmx512m, -cp, /home/wlsiadm/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/home/wlsiadm/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /home/wlsiadm/apache-maven-3.0.4, /home/wlsiadm/apache-tomcat-jenkins/webapps/jenkins/WEB-INF/lib/remoting-2.21.jar, /home/wlsiadm/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar, 50473] failed
  6. 0

    I am configuring GIT with Gerrit event so I select "Choosing strategy" with value "Gerrit Trigger" then I get the following exception (Using value "Default" it works but instead of fetching my changes it fetch the parent branch) Detailed Java Exception: 17:31:41 hudson.util.IOException2: remote file operation failed: /proj/madridhss/jenkins/jobs-lab/GG-CI_1-Main_Prototype at hudson.remoting.Channel@a27760:esekilxxen1816 17:31:41 at hudson.FilePath.act(FilePath.java:901) 17:31:41 at hudson.FilePath.act(FilePath.java:878) 17:31:41 at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:948) 17:31:41 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1114) 17:31:41 at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) 17:31:41 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 17:31:41 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 17:31:41 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 17:31:41 at hudson.model.Run.execute(Run.java:1576) 17:31:41 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 17:31:41 at hudson.model.ResourceController.execute(ResourceController.java:88) 17:31:41 at hudson.model.Executor.run(Executor.java:241) 17:31:41 Caused by: java.io.IOException: Remote call on esekilxxen1816 failed 17:31:41 at hudson.remoting.Channel.call(Channel.java:681) 17:31:41 at hudson.FilePath.act(FilePath.java:894) 17:31:41 ... 11 more 17:31:41 Caused by: java.lang.ClassFormatError: Failed to load com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser 17:31:41 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:193) 17:31:41 at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144) 17:31:41 at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 17:31:41 at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 17:31:41 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) 17:31:41 at java.lang.Class.forName0(Native Method) 17:31:41 at java.lang.Class.forName(Class.java:242) 17:31:41 at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113) 17:31:41 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) 17:31:41 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910) 17:31:41 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834) 17:31:41 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719) 17:31:41 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) 17:31:41 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) 17:31:41 at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) 17:31:41 at hudson.remoting.UserRequest.perform(UserRequest.java:98) 17:31:41 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:31:41 at hudson.remoting.Request$2.run(Request.java:326) 17:31:41 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:31:41 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) 17:31:41 at java.util.concurrent.FutureTask.run(FutureTask.java:123) 17:31:41 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) 17:31:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) 17:31:41 at java.lang.Thread.run(Thread.java:595) 17:31:41 Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file 17:31:41 at java.lang.ClassLoader.defineClass1(Native Method) 17:31:41 at java.lang.ClassLoader.defineClass(ClassLoader.java:621) 17:31:41 at java.lang.ClassLoader.defineClass(ClassLoader.java:466) 17:31:41 at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191) 17:31:41 ... 34 more

    Jenkins JIRA | 3 years ago | Jacobo Jimenez
    hudson.util.IOException2: remote file operation failed: /proj/madridhss/jenkins/jobs-lab/GG-CI_1-Main_Prototype at hudson.remoting.Channel@a27760:esekilxxen1816

    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:621)
      3. java.lang.ClassLoader.defineClass(ClassLoader.java:466)
      3 frames
    3. Hudson :: Remoting Layer
      RemoteClassLoader.findClass
      1. hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:191)
      2. hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:144)
      2 frames
    4. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      3 frames
    5. Hudson
      FilePath.copyRecursiveTo
      1. hudson.os.PosixAPI.jnr(PosixAPI.java:30)
      2. hudson.util.IOUtils.mode(IOUtils.java:125)
      3. hudson.util.io.TarArchiver.visit(TarArchiver.java:102)
      4. hudson.util.DirScanner$Glob.scan(DirScanner.java:133)
      5. hudson.FilePath.writeToTar(FilePath.java:1979)
      6. hudson.FilePath.copyRecursiveTo(FilePath.java:1905)
      7. hudson.FilePath.copyRecursiveTo(FilePath.java:1832)
      7 frames
    6. Legacy Maven 2 job type Plugin
      MavenSiteArchiver.postExecute
      1. hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:82)
      1 frame
    7. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.mojoSucceeded
      1. hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:453)
      2. hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:435)
      2 frames
    8. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      4. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      5. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      6. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      7. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      8. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      9. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      10. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      11. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      11 frames
    9. M3 Interceptor
      Maven3Launcher.main
      1. org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:592)
      4 frames
    11. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      2 frames
    12. M3 Agent
      Maven3Main.launch
      1. org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      1 frame
    13. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
      2 frames
    14. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    15. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:123)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      5. java.lang.Thread.run(Thread.java:595)
      5 frames