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

java.io.InvalidClassException

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After upgrading jenkins to latest I'm having issues like this one below:

      Building remotely on jenkins-ptc in workspace /home/jenkins/workspace/PTC-EA_integration-tests-deploy
      java.io.InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: stream classdesc serialVersionUID = -8896131865330068025, local class serialVersionUID = 6097725669216027397
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:632)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
      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:314)
      at java.util.concurrent.FutureTask.run(FutureTask.java:149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
      at java.lang.Thread.run(Thread.java:736)

        Attachments

          Activity

          Hide
          rainerw Rainer Weinhold added a comment -

          Me to. I think this could be an issue with the installed Java, there is an IBM Java on that slave:

          >java -version
          java version "1.6.0"
          Java(TM) SE Runtime Environment (build pxa6460sr3ifix-20090218_02(SR3+IZ43791+IZ43798))
          IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460-20081105_25433 (JIT enabled, AOT enabled)
          J9VM - 20081105_025433_LHdSMr
          JIT - r9_20081031_1330
          GC - 20081027_AB)
          JCL - 20090218_01

          My Trace :

          java.io.InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: stream classdesc serialVersionUID = -8896131865330068025, local class serialVersionUID = 6097725669216027397
          at java.io.InvalidClassException.<init>(InvalidClassException.java:62)
          at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:542)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1594)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1507)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1743)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1340)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)
          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:314)
          at java.util.concurrent.FutureTask.run(FutureTask.java:149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
          at java.lang.Thread.run(Thread.java:735)

          Show
          rainerw Rainer Weinhold added a comment - Me to. I think this could be an issue with the installed Java, there is an IBM Java on that slave: >java -version java version "1.6.0" Java(TM) SE Runtime Environment (build pxa6460sr3ifix-20090218_02(SR3+IZ43791+IZ43798)) IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460-20081105_25433 (JIT enabled, AOT enabled) J9VM - 20081105_025433_LHdSMr JIT - r9_20081031_1330 GC - 20081027_AB) JCL - 20090218_01 My Trace : java.io.InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: stream classdesc serialVersionUID = -8896131865330068025, local class serialVersionUID = 6097725669216027397 at java.io.InvalidClassException.<init>(InvalidClassException.java:62) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:542) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1594) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1507) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1743) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1340) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362) 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:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:735)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/tools/JDKInstaller.java
          http://jenkins-ci.org/commit/jenkins/8a1b069a86a4282343047825487e43d767601f86
          Log:
          [FIXED JENKINS-14667] JDK installation failed on some slaves with InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: …

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/tools/JDKInstaller.java http://jenkins-ci.org/commit/jenkins/8a1b069a86a4282343047825487e43d767601f86 Log: [FIXED JENKINS-14667] JDK installation failed on some slaves with InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: …
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/tools/JDKInstaller.java
          http://jenkins-ci.org/commit/jenkins/9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968
          Log:
          JENKINS-14667 Another case.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/tools/JDKInstaller.java http://jenkins-ci.org/commit/jenkins/9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968 Log: JENKINS-14667 Another case.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1928
          [FIXED JENKINS-14667] JDK installation failed on some slaves with InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: … (Revision 8a1b069a86a4282343047825487e43d767601f86)

          Result = SUCCESS
          Jesse Glick : 8a1b069a86a4282343047825487e43d767601f86
          Files :

          • core/src/main/java/hudson/tools/JDKInstaller.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1928 [FIXED JENKINS-14667] JDK installation failed on some slaves with InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: … (Revision 8a1b069a86a4282343047825487e43d767601f86) Result = SUCCESS Jesse Glick : 8a1b069a86a4282343047825487e43d767601f86 Files : core/src/main/java/hudson/tools/JDKInstaller.java changelog.html
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1929
          JENKINS-14667 Another case. (Revision 9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968)

          Result = UNSTABLE
          Jesse Glick : 9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968
          Files :

          • core/src/main/java/hudson/tools/JDKInstaller.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1929 JENKINS-14667 Another case. (Revision 9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968) Result = UNSTABLE Jesse Glick : 9b0e1fb6f6b94b5f2a4267fbf923b917f29ab968 Files : core/src/main/java/hudson/tools/JDKInstaller.java

            People

            • Assignee:
              Unassigned
              Reporter:
              redhand Krzysztof Pędrys
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: