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

Builds fail in JUnit test archiving (since 1.416) if specifying JDK other than the container

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, junit-plugin
    • None
    • Windows Server 2008 R2
      Jetty 7.3.0.v20110203
      Jenkins 1.416

      After update Jenkins from 1.415 to 1.416,
      our maven projects build fail every time.

      The console output is list as below:

      ... skipped ...

      [TASKS] Skipping maven reporter: there is already a result available.
      [JENKINS] Recording test results
      [JENKINS] Archiving D:\AppData\jenkins\jobs\pac\workspace\pac-core\pom.xml to D:\AppData\jenkins\jobs\pac\modules\pac$pac-core\builds\2011-06-20_18-25-35\archive\pac\pac-core\1.0-SNAPSHOT\pac-core-1.0-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test': hudson.util.io.ParserConfigurator$1; local class incompatible: stream classdesc serialVersionUID = 6472613931861772577, local class serialVersionUID = -2178106894481500733
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 50 seconds
      [INFO] Finished at: Mon Jun 20 18:27:29 CST 2011
      [INFO] Final Memory: 97M/263M
      [INFO] ------------------------------------------------------------------------
      Waiting for Jenkins to finish collecting data

      ... skipped ...

          [JENKINS-10030] Builds fail in JUnit test archiving (since 1.416) if specifying JDK other than the container

          Our Jenkins installation runs under 'Oracle JRE 1.6.0 build 24',
          and the configured JDK in Jenkins is 'IBM J9 VM build 2.4, JRE 1.6.0'...

          Pei-Tang Huang added a comment - Our Jenkins installation runs under 'Oracle JRE 1.6.0 build 24', and the configured JDK in Jenkins is 'IBM J9 VM build 2.4, JRE 1.6.0'...

          Problem remains in 1.417.

          Once I set JDK of jobs to the same of the container,
          those previously failed builds became stable...

          But this is not a valid option in our case,
          We MUST specify the JDK to fit our production environments.

          Pei-Tang Huang added a comment - Problem remains in 1.417. Once I set JDK of jobs to the same of the container, those previously failed builds became stable... But this is not a valid option in our case, We MUST specify the JDK to fit our production environments.

          Gareth King added a comment -

          Thank you for indicating a workaround.

          We are also experiencing this problem, and this is a big problem for us too as we target 2 different JDK's.
          The JDK's are targeted depending on the app server and it's underlying JDK (Websphere 6.1 and Websphere 7)

          Gareth King added a comment - Thank you for indicating a workaround. We are also experiencing this problem, and this is a big problem for us too as we target 2 different JDK's. The JDK's are targeted depending on the app server and it's underlying JDK (Websphere 6.1 and Websphere 7)

          Thorsten Roemer added a comment - - edited

          Same goes here for our AIX slaves using IBM JDK 1.6.
          (Jenkins v1.419)

          Creepy workaround is to use "Publish TestNG Results" (Plugin) rather than "Publish JUnit Results".

          Thorsten Roemer added a comment - - edited Same goes here for our AIX slaves using IBM JDK 1.6. (Jenkins v1.419) Creepy workaround is to use "Publish TestNG Results" (Plugin) rather than "Publish JUnit Results".

          micha4311 added a comment - - edited

          This also occurs on Jenkisn 1.423 running on Sun JDK 1.6.0_15, Slave on 1.6.0_26, Build Job running with IBM JDK 1.5.
          Currently all IBM Builds are not working, so this is a blocking issue!

          micha4311 added a comment - - edited This also occurs on Jenkisn 1.423 running on Sun JDK 1.6.0_15, Slave on 1.6.0_26, Build Job running with IBM JDK 1.5. Currently all IBM Builds are not working, so this is a blocking issue!

          micha4311 added a comment -

          What about the workaround - I do not find a "Publish JUnit Results" in the job configuration which I could deactivate. Does this come with the testng-plugin (is this the testng-plugin on the jenkins page?)

          micha4311 added a comment - What about the workaround - I do not find a "Publish JUnit Results" in the job configuration which I could deactivate. Does this come with the testng-plugin (is this the testng-plugin on the jenkins page?)

          Robert Clark added a comment -

          I've also been hit with a similar error, also on AIX:

          This happens for both 1.5 and 1.6 VMS from IBM

          J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20070426 (JIT enabled)
          JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr8ifx-20100609_59383 (JIT enabled, AOT enabled)

          [pool-2-thread-1] hudson.scm.SubversionWorkspaceSelector - Failed to retrieve Subversion workspace format
            java.io.InvalidClassException: hudson.scm.SubversionWorkspaceSelector$1; local class incompatible: stream classdesc 
            serialVersionUID = -9083182694487986517, local class serialVersionUID = 6494337549896104453
                  at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
                  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
                  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:270)
                  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:619)
          

          Robert Clark added a comment - I've also been hit with a similar error, also on AIX: This happens for both 1.5 and 1.6 VMS from IBM J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20070426 (JIT enabled) JRE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260sr8ifx-20100609_59383 (JIT enabled, AOT enabled) [pool-2-thread-1] hudson.scm.SubversionWorkspaceSelector - Failed to retrieve Subversion workspace format java.io.InvalidClassException: hudson.scm.SubversionWorkspaceSelector$1; local class incompatible: stream classdesc serialVersionUID = -9083182694487986517, local class serialVersionUID = 6494337549896104453 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) 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:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          core/src/main/java/hudson/util/io/ParserConfigurator.java
          maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          http://jenkins-ci.org/commit/jenkins/307fca204598d2496325455ee49b1b634e71fdf2
          Log:
          [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/src/main/java/hudson/util/io/ParserConfigurator.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/jenkins/307fca204598d2496325455ee49b1b634e71fdf2 Log: [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9
          Log:
          added changelog entry for JENKINS-10030

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9 Log: added changelog entry for JENKINS-10030

          kutzi added a comment -

          Robert, your problem is a different one, but similar cause. I'm going to fix it in the subversion plugin.

          kutzi added a comment - Robert, your problem is a different one, but similar cause. I'm going to fix it in the subversion plugin.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1046
          [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is
          added changelog entry for JENKINS-10030

          Christoph Kutzinski : 307fca204598d2496325455ee49b1b634e71fdf2
          Files :

          • core/src/main/java/hudson/util/io/ParserConfigurator.java
          • maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java

          Christoph Kutzinski : 6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #1046 [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is added changelog entry for JENKINS-10030 Christoph Kutzinski : 307fca204598d2496325455ee49b1b634e71fdf2 Files : core/src/main/java/hudson/util/io/ParserConfigurator.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java Christoph Kutzinski : 6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9 Files : changelog.html

          Code changed in jenkins
          User: kutzi
          Path:
          src/main/java/hudson/scm/PerJobCredentialStore.java
          src/main/java/hudson/scm/SubversionSCM.java
          src/main/java/hudson/scm/browsers/AbstractSventon.java
          src/main/java/hudson/scm/browsers/CollabNetSVN.java
          src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java
          src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
          src/main/java/hudson/scm/subversion/CheckoutUpdater.java
          src/main/java/hudson/scm/subversion/UpdateUpdater.java
          src/main/java/hudson/scm/subversion/UpdateWithCleanUpdater.java
          src/main/java/hudson/scm/subversion/UpdateWithRevertUpdater.java
          src/main/java/hudson/scm/subversion/WorkspaceUpdater.java
          http://jenkins-ci.org/commit/subversion-plugin/9418134495a80964bb46d0ca7102e34641fa9a41
          Log:
          added serialVersionUID to all serializable classes (relates to JENKINS-10030)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: kutzi Path: src/main/java/hudson/scm/PerJobCredentialStore.java src/main/java/hudson/scm/SubversionSCM.java src/main/java/hudson/scm/browsers/AbstractSventon.java src/main/java/hudson/scm/browsers/CollabNetSVN.java src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java src/main/java/hudson/scm/subversion/CheckoutUpdater.java src/main/java/hudson/scm/subversion/UpdateUpdater.java src/main/java/hudson/scm/subversion/UpdateWithCleanUpdater.java src/main/java/hudson/scm/subversion/UpdateWithRevertUpdater.java src/main/java/hudson/scm/subversion/WorkspaceUpdater.java http://jenkins-ci.org/commit/subversion-plugin/9418134495a80964bb46d0ca7102e34641fa9a41 Log: added serialVersionUID to all serializable classes (relates to JENKINS-10030 )

          Code changed in jenkins
          User: kutzi
          Path:
          src/main/java/hudson/scm/PerJobCredentialStore.java
          src/main/java/hudson/scm/SubversionSCM.java
          src/main/java/hudson/scm/browsers/AbstractSventon.java
          src/main/java/hudson/scm/browsers/CollabNetSVN.java
          src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java
          src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
          src/main/java/hudson/scm/subversion/CheckoutUpdater.java
          src/main/java/hudson/scm/subversion/UpdateUpdater.java
          src/main/java/hudson/scm/subversion/UpdateWithCleanUpdater.java
          src/main/java/hudson/scm/subversion/UpdateWithRevertUpdater.java
          src/main/java/hudson/scm/subversion/WorkspaceUpdater.java
          http://jenkins-ci.org/commit/subversion-plugin/9418134495a80964bb46d0ca7102e34641fa9a41
          Log:
          added serialVersionUID to all serializable classes (relates to JENKINS-10030)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: kutzi Path: src/main/java/hudson/scm/PerJobCredentialStore.java src/main/java/hudson/scm/SubversionSCM.java src/main/java/hudson/scm/browsers/AbstractSventon.java src/main/java/hudson/scm/browsers/CollabNetSVN.java src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java src/main/java/hudson/scm/subversion/CheckoutUpdater.java src/main/java/hudson/scm/subversion/UpdateUpdater.java src/main/java/hudson/scm/subversion/UpdateWithCleanUpdater.java src/main/java/hudson/scm/subversion/UpdateWithRevertUpdater.java src/main/java/hudson/scm/subversion/WorkspaceUpdater.java http://jenkins-ci.org/commit/subversion-plugin/9418134495a80964bb46d0ca7102e34641fa9a41 Log: added serialVersionUID to all serializable classes (relates to JENKINS-10030 )

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          core/src/main/java/hudson/util/io/ParserConfigurator.java
          maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          http://jenkins-ci.org/commit/jenkins/307fca204598d2496325455ee49b1b634e71fdf2
          Log:
          [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/src/main/java/hudson/util/io/ParserConfigurator.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/jenkins/307fca204598d2496325455ee49b1b634e71fdf2 Log: [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9
          Log:
          added changelog entry for JENKINS-10030

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html http://jenkins-ci.org/commit/jenkins/6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9 Log: added changelog entry for JENKINS-10030

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          core/src/main/java/hudson/util/io/ParserConfigurator.java
          maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
          http://jenkins-ci.org/commit/jenkins/9d8ac5f85bdfd6a52ece375996b92262e30fc31b
          Log:
          [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is(cherry picked from commit 307fca204598d2496325455ee49b1b634e71fdf2)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/src/main/java/hudson/util/io/ParserConfigurator.java maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/jenkins/9d8ac5f85bdfd6a52ece375996b92262e30fc31b Log: [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is(cherry picked from commit 307fca204598d2496325455ee49b1b634e71fdf2)

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          http://jenkins-ci.org/commit/jenkins/2c20cf6b0a4d89d80c4a2faee7cd8c1d8bfa88ea
          Log:
          added changelog entry for JENKINS-10030

          Cherry-picked-from: 6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: http://jenkins-ci.org/commit/jenkins/2c20cf6b0a4d89d80c4a2faee7cd8c1d8bfa88ea Log: added changelog entry for JENKINS-10030 Cherry-picked-from: 6b5ef4bd4aa8703f26ca7bda421171b56f9d7db9

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/reporters/SurefireArchiver.java
          http://jenkins-ci.org/commit/maven-plugin/da1597b76f1dc9530d8a20b8a58441bb39bdfa83
          Log:
          [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is
          Originally-Committed-As: 307fca204598d2496325455ee49b1b634e71fdf2

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/maven-plugin/da1597b76f1dc9530d8a20b8a58441bb39bdfa83 Log: [FIXED JENKINS-10030] builds failing while JUnit result archiving if build is running in different VM than Jenkins is Originally-Committed-As: 307fca204598d2496325455ee49b1b634e71fdf2

            kutzi kutzi
            beta Pei-Tang Huang
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: