[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel updated an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel Seems the switching mechanism does not kick in again. On a local build all locks fine:{code}[maven-jdk-test] $ /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_/bin/java -cp /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.8.1.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/boot/plexus-classworlds-2.5.2.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/conf/logging jenkins.maven3.agent.Maven32Main /export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x /run/jenkins/war/WEB-INF/lib/remoting-3.2.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.8.1.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.8.1.jar 41978Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74)ERROR: ERROR: Invalid project setup: Connection resetERROR: [JENKINS-18403][JENKINS-28294] JDK 'JDK 1.6.0 (latest)' not supported to run Maven projects.ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the master.ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.ERROR: Retrying with slave Java and setting compile/test properties to point to /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_.ERROR: Established TCP socket on 34326[maven-jdk-test] $ /export0/sbs/jenkins-runtime-jdk1.8.0/jre/bin/java -cp /export/sbs/je
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel updated an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel Component/s: remoting Seems the switching mechanism does not kick in again. On a local build all locks fine:{code}[maven-jdk-test] $ /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_/bin/java -cp /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.8.1.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/boot/plexus-classworlds-2.5.2.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/conf/logging jenkins.maven3.agent.Maven32Main /export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x /run/jenkins/war/WEB-INF/lib/remoting-3.2.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.8.1.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.8.1.jar 41978Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74)ERROR: ERROR: Invalid project setup: Connection resetERROR: [JENKINS-18403][JENKINS-28294] JDK 'JDK 1.6.0 (latest)' not supported to run Maven projects.ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the master.ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.ERROR: Retrying with slave Java and setting compile/test properties to point to /export/sbs/jenkins/home/tools/hudson.mode
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel commented on JENKINS-40990 Re: Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Ok, cause is that with the new remoting} the causing {{UnsupportedClassVersionError is not part of the getCause chain of the caught IOException any more. Need to find out how the cause is reported now through the channel. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Daniel Beck commented on JENKINS-40990 Re: Jenkins 2.32.1 causes Java 5/6 Maven builds to fail My apologies for closing. I saw the Maven output and came to the wrong conclusion. Looks like a Maven Plugin issue then. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Daniel Beck assigned an issue to Unassigned Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Daniel Beck Assignee: Daniel Beck Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel reopened an issue Hi Daniel, thanks for looking into this and sorry to reopen this. I know that remoting does not support the older JDKs, so does the maven build job type. For that reason the JDK switch was implemented which works fine on a local build Retrying with slave Java and setting compile/test properties to point to /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_., but fails on the remote build. I assume it is because of a different exception raised in this case with the new remoting, but I'm do not have deep knowledge here. Something like Jesse Glick did in the linked ticket https://issues.jenkins-ci.org/browse/JENKINS-25272?focusedCommentId=234013&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-234013 might fix the issue described here. Kind Regards, Andreas. Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel Resolution: Duplicate Status: Closed Reopened Assignee: Jesse Glick Daniel Beck Add Comment
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Daniel Beck closed an issue as Duplicate Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Daniel Beck Status: Open Closed Resolution: Duplicate Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel updated an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel Seems the switching mechanism does not kick in again. On a local build all locks fine:{code}[maven-jdk-test] $ /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_/bin/java -cp /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.8.1.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/boot/plexus-classworlds-2.5.2.jar:/export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x/conf/logging jenkins.maven3.agent.Maven32Main /export/sbs/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/maven-3.2.x /run/jenkins/war/WEB-INF/lib/remoting-3.2.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.8.1.jar /export/sbs/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.8.1.jar 41978Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74)ERROR: ERROR: Invalid project setup: Connection resetERROR: [JENKINS-18403][JENKINS-28294] JDK 'JDK 1.6.0 (latest)' not supported to run Maven projects.ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the master.ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK.ERROR: Retrying with slave Java and setting compile/test properties to point to /export/sbs/jenkins/home/tools/hudson.model.JDK/JDK_1.6.0_latest_.ERROR: Established TCP socket on 34326[maven-jdk-test] $ /export0/sbs/jenkins-runtime-jdk1.8.0/jre/bin/java -cp /export/sbs/je
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel updated an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel Environment: Ubuntu Linux 12.04 LTS Slave.jar running under Java 7Project: Maven 3. 0 2 . 4 2 , JDK 5 Update 22 6 Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel created an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Issue Type: Bug Affects Versions: current Assignee: Jesse Glick Components: maven-plugin Created: 2017/Jan/11 10:00 AM Environment: Ubuntu Linux 12.04 LTS Slave.jar running under Java 7 Project: Maven 3.0.4, JDK 5 Update 22 Labels: jdk regression Priority: Critical Reporter: Andreas Mandel After the upgrade from Jenkins 1.515 to Jenkins 1.518 one of our Maven projects failed due to a ClassFormatException: 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.code
[JIRA] (JENKINS-40990) Jenkins 2.32.1 causes Java 5/6 Maven builds to fail
Title: Message Title Andreas Mandel updated an issue Jenkins / JENKINS-40990 Jenkins 2.32.1 causes Java 5/6 Maven builds to fail Change By: Andreas Mandel 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/site23:13:37 java.lang.reflect.InvocationTargetException23: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.FunctionMapper23: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$MavenExecutionListen