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

Coderanch | Tushar Goel | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    UncaughtExceptionHandler vs Throwable Handler

    Coderanch | 3 years ago | Tushar Goel
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    Maven ignores execution configuration

    Stack Overflow | 4 years ago | Jan Vladimir Mostert
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (default-cli) on project mycee-project: Execution default-cli of goal org.jvnet.jax-ws-c ommons:jaxws-maven-plugin:2.3:wsimport failed: String index out of range: -1
  3. 0

    Tools.correctText causes a StringIndexOutOfBoundsException

    GitHub | 1 year ago | eliac
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bending display exception

    GitHub | 8 months ago | Nokorbis
    org.bukkit.command.CommandException: Unhandled exception executing command 'b' in plugin Bending v6.1.0
  6. 0

    Initialization Error When Using latest version Serenity Jbehave Archetype

    Stack Overflow | 5 months ago | Hendrione
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

    3 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.AbstractStringBuilder.substring()
    2. Java RT
      StringBuilder.substring
      1. java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:877)
      2. java.lang.StringBuilder.substring(StringBuilder.java:72)
      2 frames
    3. fault_management
      AlarmService$2.run
      1. fault_management.AlarmProcessor.processAlarm(AlarmProcessor.java:153)
      2. fault_management.AlarmProcessor.startAlarmProcessing(AlarmProcessor.java:86)
      3. fault_management.AlarmService$2.run(AlarmService.java:96)
      3 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame