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

cobertura plugin don't validate report files and later fail to parse them

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When report pattern is not well configured, cobertura plugin will archive invalid files, and later fails to parse them to generate coverage report. It should do some content validation, for example check for <!DOCTYPE coverage

        Attachments

          Activity

          Hide
          david_resnick David Resnick added a comment -

          Same here. Plugin version 1.7 now fails to parse my cobertura reports. The files are named cobertura.xml and they all start with '<?xml'. Downgrading to 1.6 fixes the problem.

          Show
          david_resnick David Resnick added a comment - Same here. Plugin version 1.7 now fails to parse my cobertura reports. The files are named cobertura.xml and they all start with '<?xml'. Downgrading to 1.6 fixes the problem.
          Hide
          ndeloof Nicolas De Loof added a comment -

          reported serialization issue has been fixed by JENKINS-15518 (released in 1.7.1)
          I wonder other reported issue are the same as no stacktrace was attached to comment

          Show
          ndeloof Nicolas De Loof added a comment - reported serialization issue has been fixed by JENKINS-15518 (released in 1.7.1) I wonder other reported issue are the same as no stacktrace was attached to comment
          Hide
          zaytsev Yury Zaytsev added a comment -

          Hi Nicolas,

          Thanks for getting back to us! My stack strace looks as follows, so, indeed, I think this must have been the serialization problem.

          hudson.util.IOException2: remote file operation failed: /mnt/ram/workspace/sumatra/sources at hudson.remoting.Channel@1970b890:fc-16-i386-2
          	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.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.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@7e18e91b
          	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:1164)
          	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
          	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
          	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
          	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
          	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
          	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
          	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
          	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
          	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
          	at hudson.remoting.UserRequest._serialize(UserRequest.java:155)
          	at hudson.remoting.UserRequest.serialize(UserRequest.java:164)
          	... 14 more
          

          Z.

          Show
          zaytsev Yury Zaytsev added a comment - Hi Nicolas, Thanks for getting back to us! My stack strace looks as follows, so, indeed, I think this must have been the serialization problem. hudson.util.IOException2: remote file operation failed: /mnt/ram/workspace/sumatra/sources at hudson.remoting.Channel@1970b890:fc-16-i386-2 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.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.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@7e18e91b 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:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 14 more Z.
          Hide
          zaytsev Yury Zaytsev added a comment -

          Upgrade to 1.7.1 solves the problem for me. Thanks!

          Show
          zaytsev Yury Zaytsev added a comment - Upgrade to 1.7.1 solves the problem for me. Thanks!
          Hide
          zaytsev Yury Zaytsev added a comment -

          Fixed in the latest plugin versions, reported issues in comments had to do with serialization (JENKINS-15518).

          Show
          zaytsev Yury Zaytsev added a comment - Fixed in the latest plugin versions, reported issues in comments had to do with serialization ( JENKINS-15518 ).

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              ndeloof Nicolas De Loof
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: