You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/02/23 08:06:27 UTC

[jira] Updated: (SUREFIRE-112) StringIndexOutOfBoundsException building reports from TestNG tests

     [ http://jira.codehaus.org/browse/SUREFIRE-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated SUREFIRE-112:
----------------------------------

    Fix Version/s:     (was: 2.3)
                   2.4

> StringIndexOutOfBoundsException building reports from TestNG tests
> ------------------------------------------------------------------
>
>                 Key: SUREFIRE-112
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-112
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: plugin, TestNG support
>    Affects Versions: 2.0 (2.2 plugin)
>            Reporter: Howard M. Lewis Ship
>             Fix For: 2.4
>
>         Attachments: pom.xml, TEST-Application Services.xml, testng.xml
>
>
> [INFO] Generate "Maven Surefire Report" report.
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1768)
>         at org.codehaus.mojo.surefire.ReportTestSuite.startElement(ReportTestSuite.java:85)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
>         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentSc
> annerImpl.java:878)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocum
> entScannerImpl.java:1157)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
> DocumentFragmentScannerImpl.java:1794)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
> rImpl.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)
>         at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:42)
>         at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:44)
>         at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMojo.java:77)
>         at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117)
> It would be nice if the class name was included in the <testcase> @name attribute. In fact, this may be the source of the problem?

-- 
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