Grails

grails test-app unit gives StringIndexOutOfBoundsException error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.2-RC1
  • Fix Version/s: 1.2-RC2
  • Component/s: None
  • Labels:
    None

Description

When running grails test-app unit (instead of grails test-app unit you get nasty error:

Error executing script TestApp: java.lang.StringIndexOutOfBoundsException: Strin
g index out of range: -1
gant.TargetExecutionException: java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(String.java:1938)
at _GrailsTest_groovy$_run_closure1_closure18.doCall(_GrailsTest_groovy:
118)
at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:118)
at TestApp$_run_closure1.doCall(TestApp.groovy:102)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
... 10 more
Error executing script TestApp: java.lang.StringIndexOutOfBoundsException: Strin
g index out of range: -1

I think ommitting the ':' should be possible or at least give a less nasty error.

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: