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

GitHub | kkarolk | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Test counter failure for Scenario Outline

    GitHub | 6 months ago | kkarolk
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    () in Scenario leads to crash in result aggregation >> NullPointerException

    GitHub | 9 months ago | SchnuckySchuster
    org.apache.maven.surefire.testset.TestSetFailedException: java.lang.NullPointerException
  3. 0

    Cucumber tests in parallel with Maven surefire throw NPE

    GitHub | 1 year ago | mpalki-cabcat
    org.apache.maven.surefire.testset.TestSetFailedException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Add cucumber-jvm adaptor

    GitHub | 2 years ago | clicman
    java.lang.NullPointerException: null
  6. 0

    GitHub comment 464#68149132

    GitHub | 2 years ago | clicman
    java.lang.NullPointerException: null

  1. osvzs 2 times, last 4 days ago
  2. Indri Yunita 7 times, last 2 months ago
  3. Pilleo 1 times, last 2 months ago
  4. Andreas Häber 2 times, last 2 months ago
  5. QrCeric 1 times, last 3 months ago
25 more registered users
59 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: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1967)
    1 frame
  3. com.cognifide.qa
    BobcumberListener.testStarted
    1. com.cognifide.qa.bb.cumber.BobcumberListener.testStarted(BobcumberListener.java:70)
    1 frame
  4. JUnit
    EachTestNotifier.fireTestStarted
    1. org.junit.runner.notification.SynchronizedRunListener.testStarted(SynchronizedRunListener.java:49)
    2. org.junit.runner.notification.RunNotifier$3.notifyListener(RunNotifier.java:121)
    3. org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
    4. org.junit.runner.notification.RunNotifier.fireTestStarted(RunNotifier.java:118)
    5. org.junit.internal.runners.model.EachTestNotifier.fireTestStarted(EachTestNotifier.java:42)
    5 frames
  5. Cucumber-JVM: JUnit
    ExecutionUnitRunner.run
    1. cucumber.runtime.junit.JUnitReporter.startExecutionUnit(JUnitReporter.java:50)
    2. cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:89)
    2 frames
  6. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:128)
    2. org.junit.runners.Suite.runChild(Suite.java:27)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    8 frames
  7. Cucumber-JVM: JUnit
    ExamplesRunner.run
    1. cucumber.runtime.junit.ExamplesRunner.run(ExamplesRunner.java:59)
    1 frame
  8. JUnit
    ParentRunner.run
    1. org.junit.runners.Suite.runChild(Suite.java:128)
    2. org.junit.runners.Suite.runChild(Suite.java:27)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    8 frames
  9. 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
  10. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    6 frames
  11. 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
  12. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    6 frames
  13. Cucumber-JVM: JUnit
    Cucumber.run
    1. cucumber.api.junit.Cucumber.run(Cucumber.java:98)
    1 frame
  14. com.cognifide.qa
    Bobcumber.run
    1. com.cognifide.qa.bb.cumber.Bobcumber.run(Bobcumber.java:99)
    1 frame
  15. JUnit
    JUnitCore.run
    1. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    1 frame
  16. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  17. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
    2 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  19. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame