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

Failed to parse a parameterized test : null pointeur (id is null)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • javatest-report-plugin
    • None
    • linux gentoor

      Trace:

      Collecting JavaTest reports
      ERROR: Failed to parse /home2/hudson/home/jobs/HandTest/builds/2010-06-23_12-27-25/java-test-result/report0.xml
      java.lang.NullPointerException
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2919)
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2945)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1133)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
      at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1343)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      at org.apache.commons.digester.Digester.parse(Digester.java:1631)
      at hudson.plugins.javatest_report.Report.add(Report.java:90)
      at hudson.plugins.javatest_report.JavaTestAction.load(JavaTestAction.java:109)
      at hudson.plugins.javatest_report.JavaTestAction.<init>(JavaTestAction.java:53)
      at hudson.plugins.javatest_report.JavaTestReportPublisher.perform(JavaTestReportPublisher.java:149)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1264)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:124)
      Caused by: java.lang.NullPointerException
      at java.util.TreeMap.put(TreeMap.java:541)
      at hudson.plugins.javatest_report.TestCollection.add(TestCollection.java:84)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:281)
      at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
      at org.apache.commons.digester.Rule.end(Rule.java:230)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
      ... 26 more
      Test reports were found but none of them are new. Did tests run?

        1. patch.chomats.diff
          15 kB
        2. report0.xml
          21 kB
        3. report1.xml
          11 kB

          [JENKINS-6831] Failed to parse a parameterized test : null pointeur (id is null)

          chomats added a comment -

          test result

          console test result :

          ********************************************************

          • TEST RESULTS
            ********************************************************
            *
          • [ ERROR ] HiddenPageUI (5 min 9 seconds. )
          • [ ERROR ] HiddenPageUI_CADSEg (5 min 9 seconds. )
          • [ ERROR ] main[0](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[1](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [ ERROR ] main[2](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[3](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[4](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[5](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[6](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[7](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[8](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[9](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [SUCCESS] main[10](fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg)
          • [NOT RUN] HiddenPageUI_Execution
            *
          • [ ERROR ] TOTAL : 8 min 6 seconds.
            *
            ********************************************************

          chomats added a comment - test result console test result : ******************************************************** TEST RESULTS ******************************************************** * [ ERROR ] HiddenPageUI (5 min 9 seconds. ) [ ERROR ] HiddenPageUI_CADSEg (5 min 9 seconds. ) [ ERROR ] main [0] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [1] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [ ERROR ] main [2] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [3] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [4] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [5] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [6] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [7] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [8] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [9] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [SUCCESS] main [10] (fr.imag.adele.cadse.test.ui.HiddenPageUI_tc_CADSEg) [NOT RUN] HiddenPageUI_Execution * [ ERROR ] TOTAL : 8 min 6 seconds. * ********************************************************

          Alan Harder added a comment -

          I see javatest-report in the stack trace, so reassigning.. you can change back if the root cause turns out to be in core.. thanks.

          Alan Harder added a comment - I see javatest-report in the stack trace, so reassigning.. you can change back if the root cause turns out to be in core.. thanks.

          chomats added a comment -

          What is the tool or plugin or Class who transform junit xml to the good format. Junit xml has not attribute id for testcase node.
          the problem is a bad transformation : id is not added, I think.

          chomats added a comment - What is the tool or plugin or Class who transform junit xml to the good format. Junit xml has not attribute id for testcase node. the problem is a bad transformation : id is not added, I think.

          chomats added a comment -

          Missing id in xml : it's not the problem. see the second attachment file which produce the exception...

          chomats added a comment - Missing id in xml : it's not the problem. see the second attachment file which produce the exception...

          chomats added a comment -

          I propose a patch which add two corrections and two tests.

          chomats added a comment - I propose a patch which add two corrections and two tests.

          chomats added a comment -

          My problem is I use this plugin java-test-report with junit xml report. I must use junit report in hudson core and not this plugin. I desintall this plugin and it's ok.

          The bug if use parse junit xml report you have an null pointeur exception (no id in junit report).

          chomats added a comment - My problem is I use this plugin java-test-report with junit xml report. I must use junit report in hudson core and not this plugin. I desintall this plugin and it's ok. The bug if use parse junit xml report you have an null pointeur exception (no id in junit report).

            ramapulavarthi ramapulavarthi
            chomats chomats
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: