[mojo-dev] [jira] Assigned: (MOJO-104) Failure in XML file parsing leads to NPE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[mojo-dev] [jira] Assigned: (MOJO-104) Failure in XML file parsing leads to NPE

JIRA jira@codehaus.org
     [ http://jira.codehaus.org/browse/MOJO-104?page=all ]

Johnny R. Ruiz III reassigned MOJO-104:
---------------------------------------

    Assign To: Johnny R. Ruiz III

> Failure in XML file parsing leads to NPE
> ----------------------------------------
>
>          Key: MOJO-104
>          URL: http://jira.codehaus.org/browse/MOJO-104
>      Project: Mojo
>         Type: Bug
>   Components: JUnit Report
>     Versions: 2.0
>     Reporter: Jerome Lacoste
>     Assignee: Johnny R. Ruiz III
>     Priority: Minor
>  Attachments: MOJO-104.diff
>
>
> First issue was in the parsing:
> org.xml.sax.SAXParseException: Element type "failure" must be followed by either attribute specifications, ">" or "/>".
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
>         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:845)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
>         at org.codehaus.mojo.surefire.ReportTestSuite.<init>(ReportTestSuite.java:59)
> led to a NPE
> ava.lang.NullPointerException
>         at org.codehaus.mojo.surefire.SurefireReportGenerator.constructTestCasesSection(SurefireReportGenerator.java:344)
>         at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:60)
>         at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMojo.java:77)
>         at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117)
>         at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:840)
>         at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:319)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:406)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
> Fix will include:
> - better diagnosis on the failure
> - fix for the NPE

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Loading...