hudson.util.IOException2: Cannot parse coverage results

Jenkins JIRA | wyrdvans | 7 years ago
  1. 0

    Problem: When the clover.xml file is invalid xml, the clover post-build action fails and stops the remaining post-build actions from executing. Suggested solution: Fail the build when the clover.xml file is invalid but leave the remaining post-build actions execute. Example clover.xml file that causes the error: <?xml version="1.0" encoding="utf-8"?> <coverage clover="0.3.2" generated="1259344237"> <project timestamp="1259344237" name="NoseXUnit" Error that occurs in the build log: Publishing Clover coverage report... Publishing Clover HTML report... Publishing Clover XML report... Publishing Clover coverage results... FATAL: Unable to copy coverage from /var/lib/hudson/jobs/python-logconfig/workspace/reports/cover to /var/lib/hudson/jobs/python-logconfig/builds/2009-11-27_12-50-33 hudson.util.IOException2: Cannot parse coverage results at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:89) at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:51) at hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:191) at hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:152) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:527) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:515) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:499) at hudson.model.Run.run(Run.java:1199) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:87) ... 13 more FATAL: null java.lang.NullPointerException at hudson.plugins.clover.CloverBuildAction.<init>(CloverBuildAction.java:133) at hudson.plugins.clover.CloverBuildAction.load(CloverBuildAction.java:265) at hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:197) at hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:152) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:527) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:515) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:499) at hudson.model.Run.run(Run.java:1199) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123)

    Jenkins JIRA | 7 years ago | wyrdvans
    hudson.util.IOException2: Cannot parse coverage results
  2. 0

    Problem: When the clover.xml file is invalid xml, the clover post-build action fails and stops the remaining post-build actions from executing. Suggested solution: Fail the build when the clover.xml file is invalid but leave the remaining post-build actions execute. Example clover.xml file that causes the error: <?xml version="1.0" encoding="utf-8"?> <coverage clover="0.3.2" generated="1259344237"> <project timestamp="1259344237" name="NoseXUnit" Error that occurs in the build log: Publishing Clover coverage report... Publishing Clover HTML report... Publishing Clover XML report... Publishing Clover coverage results... FATAL: Unable to copy coverage from /var/lib/hudson/jobs/python-logconfig/workspace/reports/cover to /var/lib/hudson/jobs/python-logconfig/builds/2009-11-27_12-50-33 hudson.util.IOException2: Cannot parse coverage results at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:89) at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:51) at hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:191) at hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:152) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:527) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:515) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:499) at hudson.model.Run.run(Run.java:1199) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.commons.digester.Digester.parse(Digester.java:1666) at hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:87) ... 13 more FATAL: null java.lang.NullPointerException at hudson.plugins.clover.CloverBuildAction.<init>(CloverBuildAction.java:133) at hudson.plugins.clover.CloverBuildAction.load(CloverBuildAction.java:265) at hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:197) at hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:152) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:527) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:515) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:499) at hudson.model.Run.run(Run.java:1199) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123)

    Jenkins JIRA | 7 years ago | wyrdvans
    hudson.util.IOException2: Cannot parse coverage results
  3. 0

    Update JasperReports Library in ATR to test for collateral damage to reports

    GitHub | 5 years ago | shreyanshvaghela
    org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'paragraph'. No child element is expected at this point.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring MVC 3.0 and Apache Tiles 2.2.2 Integration

    Stack Overflow | 5 years ago | wojtek
    org.xml.sax.SAXParseException: Element type "put-attriubte" must be declared.
  6. 0

    Error compiling report java source files

    Stack Overflow | 6 years ago | Optimmus
    org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for element type "jasperReport".

  1. mauritius 2 times, last 1 month ago
  2. rp 1 times, last 5 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.xml.sax.SAXParseException

    XML document structures must start and end within the same entity.

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse()
  2. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
    2. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    2 frames
  3. Commons Digester
    Digester.parse
    1. org.apache.commons.digester.Digester.parse(Digester.java:1666)
    1 frame
  4. hudson.plugins.clover
    CloverPublisher.perform
    1. hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:87)
    2. hudson.plugins.clover.CloverCoverageParser.parse(CloverCoverageParser.java:51)
    3. hudson.plugins.clover.CloverPublisher.processCloverXml(CloverPublisher.java:191)
    4. hudson.plugins.clover.CloverPublisher.perform(CloverPublisher.java:152)
    4 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:541)
    3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:527)
    4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:515)
    5. hudson.model.Build$RunnerImpl.post2(Build.java:152)
    6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:499)
    7. hudson.model.Run.run(Run.java:1199)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    9. hudson.model.ResourceController.execute(ResourceController.java:88)
    10. hudson.model.Executor.run(Executor.java:123)
    10 frames