hudson.util.IOException2: Failed to parse C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml

Jenkins JIRA | Flavio Donzé | 4 years ago
  1. 0

    We are using Jenkins and Buckminster to build our product, about half a year ago we updated to java7 since then emma did not work anymore. Because the buckminster emma extension was outdated, used emma (1.4.x). After I reported in the forum, buckminster updated emma to version 2.2.0. I now get the following exception even though the xml looks fine (to me). Maybe this is caused by the update to java7 or emma 2.2.0. Attached is the coverage report. ------------------------------------------------ Emma: looking for coverage reports in the provided path: output/coverage_report.xml Emma: found 1 report files: C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml Emma: stored 1 report files in the build folder: C:\Data\Jenkins\workspace\jobs\scodi.server.integration\builds\2012-11-19_09-05-45\emma ERROR: Publisher hudson.plugins.emma.EmmaPublisher aborted due to exception hudson.util.IOException2: Failed to parse C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml at hudson.plugins.emma.EmmaBuildAction.load(EmmaBuildAction.java:243) at hudson.plugins.emma.EmmaPublisher.perform(EmmaPublisher.java:150) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: org.xmlpull.v1.XmlPullParserException: expected START_TAG or END_TAG not END_DOCUMENT (position: END_DOCUMENT seen ...<counter type="CLASS" missed="395" covered="620"/></report>... @1:5408806) at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1083) at hudson.plugins.emma.EmmaBuildAction.loadRatios(EmmaBuildAction.java:269) at hudson.plugins.emma.EmmaBuildAction.load(EmmaBuildAction.java:241) ... 10 more

    Jenkins JIRA | 4 years ago | Flavio Donzé
    hudson.util.IOException2: Failed to parse C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml
  2. 0

    We are using Jenkins and Buckminster to build our product, about half a year ago we updated to java7 since then emma did not work anymore. Because the buckminster emma extension was outdated, used emma (1.4.x). After I reported in the forum, buckminster updated emma to version 2.2.0. I now get the following exception even though the xml looks fine (to me). Maybe this is caused by the update to java7 or emma 2.2.0. Attached is the coverage report. ------------------------------------------------ Emma: looking for coverage reports in the provided path: output/coverage_report.xml Emma: found 1 report files: C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml Emma: stored 1 report files in the build folder: C:\Data\Jenkins\workspace\jobs\scodi.server.integration\builds\2012-11-19_09-05-45\emma ERROR: Publisher hudson.plugins.emma.EmmaPublisher aborted due to exception hudson.util.IOException2: Failed to parse C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml at hudson.plugins.emma.EmmaBuildAction.load(EmmaBuildAction.java:243) at hudson.plugins.emma.EmmaPublisher.perform(EmmaPublisher.java:150) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1541) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: org.xmlpull.v1.XmlPullParserException: expected START_TAG or END_TAG not END_DOCUMENT (position: END_DOCUMENT seen ...<counter type="CLASS" missed="395" covered="620"/></report>... @1:5408806) at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1083) at hudson.plugins.emma.EmmaBuildAction.loadRatios(EmmaBuildAction.java:269) at hudson.plugins.emma.EmmaBuildAction.load(EmmaBuildAction.java:241) ... 10 more

    Jenkins JIRA | 4 years ago | Flavio Donzé
    hudson.util.IOException2: Failed to parse C:\Data\Jenkins\workspace\workspace\scodi.server.integration\output\coverage_report.xml
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 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.xmlpull.v1.XmlPullParserException

      expected START_TAG or END_TAG not END_DOCUMENT (position: END_DOCUMENT seen ...<counter type="CLASS" missed="395" covered="620"/></report>... @1:5408806)

      at org.xmlpull.mxp1.MXParser.nextTag()
    2. MXP1: Xml Pull Parser 3rd Edition (XPP3)
      MXParser.nextTag
      1. org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1083)
      1 frame
    3. hudson.plugins.emma
      EmmaPublisher.perform
      1. hudson.plugins.emma.EmmaBuildAction.loadRatios(EmmaBuildAction.java:269)
      2. hudson.plugins.emma.EmmaBuildAction.load(EmmaBuildAction.java:241)
      3. hudson.plugins.emma.EmmaPublisher.perform(EmmaPublisher.java:150)
      3 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      6. hudson.model.Run.execute(Run.java:1541)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames