Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cobertura-plugin
    • Labels:
      None
    • Environment:
      django-jenkins on Ubuntu 12.10
    • Similar Issues:

      Description

      Coverage has generated reports, but covertura gets a ClassCastException

      When running I get this error:

      Ran 7 tests in 2.875s

      OK

      Creating test database for alias 'default'...
      Creating UserProfiles for users made with createsuperuser or syncdb.
      Creating UserProfiles for users made with createsuperuser or syncdb.
      Destroying test database for alias 'default'...
      Terminating xvnc.
      $ vncserver -kill :10
      Killing Xvnc4 process ID 3891
      Publishing Cobertura coverage report...
      ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(Unknown Source)
      at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(Unknown Source)
      at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(Unknown Source)
      at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLEventReader(Unknown Source)
      at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:546)
      at hudson.plugins.cobertura.CoberturaPublisher$ParseReportCallable.invoke(CoberturaPublisher.java:529)
      at hudson.FilePath.act(FilePath.java:839)
      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)
      Recording test results
      Sending e-mails to: stuart.axon@jpcreative.co.uk

      Finished: FAILURE

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          fixed in 1.9.

          Show
          sogabe sogabe added a comment - fixed in 1.9.
          Hide
          ignas Ignas Mikalajunas added a comment - - edited

          Yeah, I though it was not working for a couple of days, but after Jenkins restart it started to. So I think the fix is OK

          Thanks!

          Show
          ignas Ignas Mikalajunas added a comment - - edited Yeah, I though it was not working for a couple of days, but after Jenkins restart it started to. So I think the fix is OK Thanks!
          Hide
          sogabe sogabe added a comment -

          Download from http://bacons.ddo.jp/download/cobertura.hpi and check it. If it works, I'll release fixed one.

          Show
          sogabe sogabe added a comment - Download from http://bacons.ddo.jp/download/cobertura.hpi and check it. If it works, I'll release fixed one.
          Hide
          ignas Ignas Mikalajunas added a comment -

          I am getting the same error. This is an example xml file that causes the error for me.

          I have even tried removing inner tags, like having no packages, just the coverage tag, but the error stays the same.

          Show
          ignas Ignas Mikalajunas added a comment - I am getting the same error. This is an example xml file that causes the error for me. I have even tried removing inner tags, like having no packages, just the coverage tag, but the error stays the same.
          Hide
          sogabe sogabe added a comment -

          As far as I can see from stack trace, coverage report style seems to be wrong.
          Is your project Java project? python(django) project ?

          Show
          sogabe sogabe added a comment - As far as I can see from stack trace, coverage report style seems to be wrong. Is your project Java project? python(django) project ?

            People

            • Assignee:
              sogabe sogabe
              Reporter:
              stuaxo Stuart Axon
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: