[
http://jira.codehaus.org/browse/SUREFIRE-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MSUREFIRE-7 to SUREFIRE-203:
-----------------------------------------------
Complexity: (was: Intermediate)
Key: SUREFIRE-203 (was: MSUREFIRE-7)
Project: Maven Surefire (was: Maven 2.x Surefire Plugin)
> XMLReporter.testError gives String index out of range exception
> ---------------------------------------------------------------
>
> Key: SUREFIRE-203
> URL: http://jira.codehaus.org/browse/SUREFIRE-203
> Project: Maven Surefire
> Issue Type: Bug
> Reporter: Mike Perham
> Assigned To: John Casey
>
> Reporter method testFailed completed abruptly with an exception.
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1444)
> at
> org.codehaus.surefire.report.XMLReporter.testError(XMLReporter.java:131)
> at
> org.codehaus.surefire.report.ReporterManager.testFailed(ReporterManager.java:362)
> at
> org.codehaus.surefire.report.ReporterManager.testError(ReporterManager.java:334)
> at
> org.codehaus.surefire.battery.TestListenerInvocationHandler.handleAddError(TestListenerIn
> vocationHandler.java:151)
> at
> org.codehaus.surefire.battery.TestListenerInvocationHandler.invoke(TestListenerInvocation
> Handler.java:124)
> at $Proxy22.addError(Unknown Source)
> at junit.framework.TestResult.addError(TestResult.java:36)
> at junit.framework.TestResult.runProtected(TestResult.java:133)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> 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:324)
> at
> org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
> at
> org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)
--
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