java.lang.StringIndexOutOfBoundsException: String index out of range: -9

Google Groups | Yuhau Lin | 4 months ago
  1. 0

    [Bug] [JVM] String index out of range if Step Definition arguments are out of order in Step string

    Google Groups | 4 months ago | Yuhau Lin
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9
  2. 0

    While making a game launcher/updater I encountered a strange error: java.lang.StringIndexOutOfBoundsException

    Stack Overflow | 2 years ago | afroraydude
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9
  3. 0

    BNF recursion in EpochX framework

    Stack Overflow | 3 years ago | espais
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How do I test ListView with Robolectric 2.2? It says android.widget.ListView is not yet implemented

    Stack Overflow | 3 years ago | Jack Holt
    android.view.InflateException: XML file ./res/layout/activity_main.xml line #-1 (sorry, not yet implemented): Error inflating class android.widget.ListView
  6. 0

    Extracting data elements from a text file

    Stack Overflow | 4 years ago | Sinatics
    java.lang.StringIndexOutOfBoundsException: String index out of range: -9

  1. richard77 2 times, last 4 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -9

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1967)
    1 frame
  3. Gherkin
    PrettyFormatter.scenario
    1. gherkin.formatter.StepPrinter.writeStep(StepPrinter.java:11)
    2. gherkin.formatter.PrettyFormatter.printStep(PrettyFormatter.java:259)
    3. gherkin.formatter.PrettyFormatter.printSteps(PrettyFormatter.java:130)
    4. gherkin.formatter.PrettyFormatter.replay(PrettyFormatter.java:121)
    5. gherkin.formatter.PrettyFormatter.scenario(PrettyFormatter.java:98)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    3 frames
  5. Cucumber-JVM: Core
    RuntimeOptions$1.invoke
    1. cucumber.runtime.Utils$1.call(Utils.java:37)
    2. cucumber.runtime.Timeout.timeout(Timeout.java:13)
    3. cucumber.runtime.Utils.invoke(Utils.java:31)
    4. cucumber.runtime.RuntimeOptions$1.invoke(RuntimeOptions.java:290)
    4 frames
  6. com.sun.proxy
    $Proxy14.scenario
    1. com.sun.proxy.$Proxy14.scenario(Unknown Source)
    1 frame
  7. Cucumber-JVM: JUnit
    JUnitReporter.scenario
    1. cucumber.runtime.junit.JUnitReporter.scenario(JUnitReporter.java:175)
    1 frame
  8. Gherkin
    Scenario.replay
    1. gherkin.formatter.model.Scenario.replay(Scenario.java:18)
    1 frame
  9. Cucumber-JVM: Core
    CucumberScenario.run
    1. cucumber.runtime.model.StepContainer.format(StepContainer.java:31)
    2. cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:43)
    2 frames
  10. Cucumber-JVM: JUnit
    ExecutionUnitRunner.run
    1. cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
    1 frame
  11. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:127)
    2. org.junit.runners.Suite.runChild(Suite.java:26)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    8 frames
  12. Cucumber-JVM: JUnit
    ExamplesRunner.run
    1. cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
    1 frame
  13. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:127)
    2. org.junit.runners.Suite.runChild(Suite.java:26)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    8 frames
  14. Cucumber-JVM: JUnit
    FeatureRunner.runChild
    1. cucumber.runtime.junit.ScenarioOutlineRunner.run(ScenarioOutlineRunner.java:53)
    2. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
    3. cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
    3 frames
  15. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  16. Cucumber-JVM: JUnit
    Cucumber.runChild
    1. cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
    2. cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
    3. cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
    3 frames
  17. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  18. Cucumber-JVM: JUnit
    Cucumber.run
    1. cucumber.api.junit.Cucumber.run(Cucumber.java:98)
    1 frame
  19. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:344)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:269)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:240)
    4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:184)
    4 frames
  20. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286)
    2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240)
    3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
    3 frames