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

Parse Exception with Java7 and Emma 2.2.0

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          flaviodonze Flavio Donzé created issue -
          flaviodonze Flavio Donzé added a comment - Link to forum post: http://www.eclipse.org/forums/index.php?t=rview&goto=986116 Link to issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=368042
          flaviodonze Flavio Donzé made changes -
          Field Original Value New Value
          Component/s emmacoveragecolumn [ 16014 ]
          Component/s emma [ 15539 ]

          I have the same issue. But I'm using java6. So it seems that it is properly a Emma related issue.

          raphael_geissler Raphael Geissler added a comment - I have the same issue. But I'm using java6. So it seems that it is properly a Emma related issue.

          I have the same problem. Is there any workaround known?

          guite Axel Guckelsberger added a comment - I have the same problem. Is there any workaround known?

          The emma feature of Buckminster uses JaCoCo now.
          So the solution is pretty simple as soon as you get to it: use the JaCoCo Jenkins plug-in instead of the Emma plug-in.

          guite Axel Guckelsberger added a comment - The emma feature of Buckminster uses JaCoCo now. So the solution is pretty simple as soon as you get to it: use the JaCoCo Jenkins plug-in instead of the Emma plug-in.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146659 ] JNJira + In-Review [ 176672 ]

          People

            kohsuke Kohsuke Kawaguchi
            flaviodonze Flavio Donzé
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: