Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61434

hudson/tasks/junit/TestResult : Unsupported major.minor version 52.0

    Details

    • Similar Issues:

      Description

      Hello,

      I'm having trouble compiling my java project (which it was and compiled in made and compiled in java 7), I tried to update and downgrade jenkins and plugins but without success about 10 days ago everything was working normally when I decided to update the maven so that every problem started, locally the project is being compiled normally

      My jenkins version: 1.651.3
      Installed on Centos 7

      My maven is in version 2.1.1 and the JDK is version 7_80

      Error log trying to build the service:

      Parsing POMs
      [workspace] $ /opt/jenkins/tools/hudson.model.JDK/JDK7/bin/java -cp /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.5.jar:/opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7/boot/classworlds-1.1.jar hudson.maven.agent.Main /opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7 /var/cache/jenkins/war/WEB-INF/lib/remoting-2.59.jar /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.5.jar 41171
      <===[JENKINS REMOTING CAPACITY]===>channel started
      ERROR: Failed to parse POMs
      java.io.IOException: Remote call on Channel to Maven [/opt/jenkins/tools/hudson.model.JDK/JDK7/bin/java, -cp, /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.5.jar:/opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7, /var/cache/jenkins/war/WEB-INF/lib/remoting-2.59.jar, /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.5.jar, 41171] failed
      	at hudson.remoting.Channel.call(Channel.java:789)
      	at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:840)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.ClassFormatError: Failed to load hudson.tasks.junit.TestResult
      	at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:340)
      	at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:251)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at java.lang.Class.getDeclaredFields0(Native Method)
      	at java.lang.Class.privateGetDeclaredFields(Class.java:2509)
      	at java.lang.Class.getDeclaredField(Class.java:1959)
      	at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1659)
      	at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:72)
      	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:480)
      	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      	at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:602)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at java.util.ArrayList.readObject(ArrayList.java:771)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at java.util.HashMap.readObject(HashMap.java:1180)
      	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:216)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:130)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:332)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at ......remote call to Channel to Maven [/opt/jenkins/tools/hudson.model.JDK/JDK7/bin/java, -cp, /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.5.jar:/opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /opt/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_2.0.7, /var/cache/jenkins/war/WEB-INF/lib/remoting-2.59.jar, /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.5.jar, 41171](Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:252)
      	at hudson.remoting.Channel.call(Channel.java:781)
      	... 7 more
      Caused by: java.lang.UnsupportedClassVersionError: hudson/tasks/junit/TestResult : Unsupported major.minor version 52.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
      	at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:338)
      	at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:251)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at java.lang.Class.getDeclaredFields0(Native Method)
      	at java.lang.Class.privateGetDeclaredFields(Class.java:2509)
      	at java.lang.Class.getDeclaredField(Class.java:1959)
      	at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1659)
      	at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:72)
      	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:480)
      	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:468)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:468)
      	at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:365)
      	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:602)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1622)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at java.util.ArrayList.readObject(ArrayList.java:771)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at java.util.HashMap.readObject(HashMap.java:1180)
      	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:216)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:130)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:332)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Failed to send e-mail to vprestes because no e-mail address is known, and no default e-mail domain is configured
      An attempt to send an e-mail to empty list of recipients, ignored.
      

      if anyone can help me i will be grateful.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              vborges Vitor S.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: