[ http://jira.codehaus.org/browse/MSUREFIRE-138?page=all ]

Brett Porter updated MSUREFIRE-138:
-----------------------------------

    Fix Version/s: 2.3

> StringIndexOutOfBoundsException building reports from TestNG tests
> ------------------------------------------------------------------
>
>                 Key: MSUREFIRE-138
>                 URL: http://jira.codehaus.org/browse/MSUREFIRE-138
>             Project: Maven 2.x Surefire Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Howard M. Lewis Ship
>             Fix For: 2.3
>
>         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

        

Reply via email to