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

Jenkins Cobertura-1.7 fails to get the coverage result

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cobertura-plugin
    • None
    • Jenkins-1.466.2, Cobertura-1.7

      Get following error message with Cobertura-1.7 version. Downgrade to 1.5 works fine.

      Publishing Cobertura coverage report...
      FATAL: Unable to find coverage results
      hudson.util.IOException2: remote file operation failed: /home/jenkins/squeeze-amd64/workspace/trogdor/arch/amd64/dist/Debian-6.0 at hudson.remoting.Channel@2c3525fc:seblddev-debian-squeeze-amd64
      at hudson.FilePath.act(FilePath.java:835)
      at hudson.FilePath.act(FilePath.java:821)
      at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:335)
      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:1463)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@7dc8e850
      at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:62)
      at hudson.remoting.Channel.call(Channel.java:662)
      at hudson.FilePath.act(FilePath.java:828)
      ... 11 more
      Caused by: java.io.NotSerializableException: hudson.plugins.cobertura.CoberturaPublisher
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
      ... 14 more

          [JENKINS-15518] Jenkins Cobertura-1.7 fails to get the coverage result

          Kevin Cai created issue -

          A patch is available for merge in this pull request:
          https://github.com/jenkinsci/cobertura-plugin/pull/10

          Ramin Baradari added a comment - A patch is available for merge in this pull request: https://github.com/jenkinsci/cobertura-plugin/pull/10

          Code changed in jenkins
          User: r.baradari
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java
          http://jenkins-ci.org/commit/cobertura-plugin/2e2f3b0568c4cc4ee235fc98d494a0b085f0bf67
          Log:
          JENKINS-15518 changed anonymous inner FileCallable to nested class because the outer class is not serializable

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: r.baradari Path: src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java http://jenkins-ci.org/commit/cobertura-plugin/2e2f3b0568c4cc4ee235fc98d494a0b085f0bf67 Log: JENKINS-15518 changed anonymous inner FileCallable to nested class because the outer class is not serializable

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java
          http://jenkins-ci.org/commit/cobertura-plugin/e2777e8d795ae863ef24832bf23ad6b7c2ef490f
          Log:
          Merge pull request #10 from rbaradari/fix-15518

          JENKINS-15518 changed anonymous inner FileCallable to nested class because the outer class is not serializable

          Compare: https://github.com/jenkinsci/cobertura-plugin/compare/9e6a61b3048a...e2777e8d795a

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/hudson/plugins/cobertura/CoberturaPublisher.java http://jenkins-ci.org/commit/cobertura-plugin/e2777e8d795ae863ef24832bf23ad6b7c2ef490f Log: Merge pull request #10 from rbaradari/fix-15518 JENKINS-15518 changed anonymous inner FileCallable to nested class because the outer class is not serializable Compare: https://github.com/jenkinsci/cobertura-plugin/compare/9e6a61b3048a...e2777e8d795a

          Jesse Glick added a comment -

          Committed in 1.7.1, right?

          Jesse Glick added a comment - Committed in 1.7.1, right?
          Jesse Glick made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Nicolas De Loof [ ndeloof ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          indeed, fixed in 1.7.1

          Nicolas De Loof added a comment - indeed, fixed in 1.7.1

          Liya Katz added a comment -

          Got this error after upgrade to 1.8

          Liya Katz added a comment - Got this error after upgrade to 1.8
          Liya Katz made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Jesse Glick added a comment -

          @liya please show the exact error message you now get, so developers can confirm that you are really running 1.8, and that the error is really the same.

          Jesse Glick added a comment - @liya please show the exact error message you now get, so developers can confirm that you are really running 1.8, and that the error is really the same.

            ndeloof Nicolas De Loof
            kevincai Kevin Cai
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: