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

java.io.InvalidClassException:

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • sloccount-plugin
    • None
    • JENKINS 1.471
      SLOCCOUNT 1.8
      sloccount --version = 2.26

    Description

      I've just upgraded the sloccount plugin and I've got this exception, any clue?

      hudson.util.IOException2: remote file operation failed: /storage/jenkins/workspace/AP_TE_DAS at hudson.remoting.Channel@758a3cbd:rbm-81
      at hudson.FilePath.act(FilePath.java:835)
      at hudson.FilePath.act(FilePath.java:821)
      at hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java:57)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
      at hudson.model.Run.run(Run.java:1459)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      Caused by: java.io.InvalidClassException: hudson.plugins.sloccount.model.SloccountParser; local class incompatible: stream classdesc serialVersionUID = -8100271152938449740, local class serialVersionUID = -1737026433534593219
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
      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:287)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      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:662)
      Build step 'Publish SLOCCount analysis results' marked build as failure

      Attachments

        Activity

          v2v Victor Martinez created issue -
          ben25 Karsten Brandt made changes -
          Field Original Value New Value
          Assignee npiguet [ npiguet ] Karsten Brandt [ ben25 ]

          Seems to me related to https://issues.jenkins-ci.org/browse/JENKINS-14135.
          Please try the modified plugin, which has been attached to the issue above.

          ben25 Karsten Brandt added a comment - Seems to me related to https://issues.jenkins-ci.org/browse/JENKINS-14135 . Please try the modified plugin, which has been attached to the issue above.
          ben25 Karsten Brandt made changes -
          Attachment sloccount.hpi [ 22061 ]

          I've revoked the last "optimization" in commit 2d0f2d6358cad6ae144abef5e6f304c4e3e5bb94 to keep the backward compatibility. The introducing of a new class field 'report' in class SloccountParser has lead to a change of the serialVersionUID and this leads probably to the java.io.InvalidClassException as reported in #JENKINS-14255.

          Please try again with the modified plugin, which has been attached to this issue. Thereto download the attached hpi file (advanced settings dialog within the plugin manager) and restart your jenkins server. After restart you should see in the plugin manager a installed plugin version look like this: 1.8-SNAPSHOT (private-07/01/2012 10:53-brandt).

          Please, report the test result!

          Best regards,
          Karsten

          ben25 Karsten Brandt added a comment - I've revoked the last "optimization" in commit 2d0f2d6358cad6ae144abef5e6f304c4e3e5bb94 to keep the backward compatibility. The introducing of a new class field 'report' in class SloccountParser has lead to a change of the serialVersionUID and this leads probably to the java.io.InvalidClassException as reported in # JENKINS-14255 . Please try again with the modified plugin, which has been attached to this issue. Thereto download the attached hpi file (advanced settings dialog within the plugin manager) and restart your jenkins server. After restart you should see in the plugin manager a installed plugin version look like this: 1.8-SNAPSHOT (private-07/01/2012 10:53-brandt). Please, report the test result! Best regards, Karsten

          Code changed in jenkins
          User: Karsten Brandt
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountPublisher.java
          src/main/java/hudson/plugins/sloccount/model/SloccountParser.java
          http://jenkins-ci.org/commit/sloccount-plugin/f2577af289dcd5d4fa6d114b9b2ccedc7d2e5629
          Log:
          [FIXED JENKINS-14255] java.io.InvalidClassException

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Karsten Brandt Path: src/main/java/hudson/plugins/sloccount/SloccountPublisher.java src/main/java/hudson/plugins/sloccount/model/SloccountParser.java http://jenkins-ci.org/commit/sloccount-plugin/f2577af289dcd5d4fa6d114b9b2ccedc7d2e5629 Log: [FIXED JENKINS-14255] java.io.InvalidClassException
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          Code changed in jenkins
          User: kbrandt
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountPublisher.java
          src/main/java/hudson/plugins/sloccount/model/SloccountParser.java
          http://jenkins-ci.org/commit/sloccount-plugin/098949d472c108ab02ab13de10f9c5064f4817d9
          Log:
          Merge pull request #8 from kbrandt/master

          [FIXED JENKINS-14255] java.io.InvalidClassException

          Compare: https://github.com/jenkinsci/sloccount-plugin/compare/fa00c9329554...098949d472c1

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: kbrandt Path: src/main/java/hudson/plugins/sloccount/SloccountPublisher.java src/main/java/hudson/plugins/sloccount/model/SloccountParser.java http://jenkins-ci.org/commit/sloccount-plugin/098949d472c108ab02ab13de10f9c5064f4817d9 Log: Merge pull request #8 from kbrandt/master [FIXED JENKINS-14255] java.io.InvalidClassException Compare: https://github.com/jenkinsci/sloccount-plugin/compare/fa00c9329554...098949d472c1
          mixalturek Michal Turek added a comment -

          Closing old non-closed but resolved tasks. Please reopen if the issue is still present.

          mixalturek Michal Turek added a comment - Closing old non-closed but resolved tasks. Please reopen if the issue is still present.
          mixalturek Michal Turek made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 144887 ] JNJira + In-Review [ 205963 ]

          People

            ben25 Karsten Brandt
            v2v Victor Martinez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: