You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/11/28 21:36:06 UTC
[jira] Closed: (MNG-1481) XMLReporter.testError gives String index out of range exception
[ http://jira.codehaus.org/browse/MNG-1481?page=all ]
John Casey closed MNG-1481:
---------------------------
Assign To: John Casey (was: Allan Ramirez)
Resolution: Fixed
Fix Version: 2.0.1
should be fixed. I verified that the underlying surefire issue had been fixed.
> XMLReporter.testError gives String index out of range exception
> ---------------------------------------------------------------
>
> Key: MNG-1481
> URL: http://jira.codehaus.org/browse/MNG-1481
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Versions: 2.0
> Reporter: mike perham
> Assignee: John Casey
> Fix For: 2.0.1
>
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org