java.lang.reflect.InvocationTargetException

tip

Update "latest" to Java 8 on DockerHub.

tip

This might be caused by and outdated version of Java, SonarQube now uses Java 8 as default. You might upgrade java or use an older version of SonarQube.

tip

You're using an older version of java with classes compiled for java7

tip

If you're using intellij plugin of sonarqube, you might have to set the JAVA_HOME ambient variable manually.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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.
    via by Michael Rumpf,
  • 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.
    via by Michael Rumpf,
  • 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
    via by Jacobo Jimenez,
  • 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}
    via by Christian Müller,
  • 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
    via by Jacobo Jimenez,
  • 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}
    via by Christian Müller,
  • My jobs failed when processing CppUnit with this error : ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception hudson.util.IOException2: remote file operation failed: /var/jenkins/workspace/nameOfMyJob at hudson.remoting.Channel@cb61b:runner-rh4u8 at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at org.jenkinsci.plugins.xunit.XUnitPublisher.performTests(XUnitPublisher.java:170) at org.jenkinsci.plugins.xunit.XUnitPublisher.performXUnit(XUnitPublisher.java:115) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:92) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.IOException: Remote call on runner-rh4u8 failed at hudson.remoting.Channel.call(Channel.java:672) at hudson.FilePath.act(FilePath.java:831) ... 13 more Caused by: java.lang.ClassFormatError: Failed to load com.thalesgroup.dtkit.junit.CppUnit at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:154) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:131) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:113) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) 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(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:152) ... 34 more I can't find why this happens. I have a master/slave configuration, jenkins master is on ubuntu and jenkins slave (named runner-rh4u8 in traces above) on redhat4 update8 Thanks in advance for your help
    via by Adoudev,
    • java.lang.reflect.InvocationTargetException 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) 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 jnr.ffi.mapper.FunctionMapper 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.os.PosixAPI.jnr(PosixAPI.java:30) at hudson.util.IOUtils.mode(IOUtils.java:125) at hudson.util.io.TarArchiver.visit(TarArchiver.java:102) at hudson.util.DirScanner$Glob.scan(DirScanner.java:133) at hudson.FilePath.writeToTar(FilePath.java:1979) at hudson.FilePath.copyRecursiveTo(FilePath.java:1905) at hudson.FilePath.copyRecursiveTo(FilePath.java:1832) at hudson.maven.reporters.MavenSiteArchiver.postExecute(MavenSiteArchiver.java:82) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:453) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:435) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) 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) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) ... 18 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) ... 44 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    193 more bugmates