java.lang.StringIndexOutOfBoundsException: String ind ex out of range: -1

Coderanch | Subhash Sriram | 1 decade 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

    modifying an input file based on pattern matching

    Coderanch | 1 decade ago | Subhash Sriram
    java.lang.StringIndexOutOfBoundsException: String ind ex out of range: -1
  2. 0

    Successive appendReplacement calls fail

    Stack Overflow | 6 years ago | D_K
    java.lang.StringIndexOutOfBoundsException: String index out of range: -30
  3. 0

    StringIndexOutOfBoundsException when parsing link http://news.yahoo.com/s/nm/20100831/bs_nm/us_gm_china

    GitHub | 7 years ago | TwistedLogic
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Throws exception when parse "<p>&#36;</p>"

    GitHub | 6 years ago | freewind
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  6. 0

    url-decode blowing up on encoded $, that is %24

    GitHub | 5 years ago | jamieorc
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3

    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 ind ex out of range: -1

      at java.lang.String.substring()
    2. Java RT
      Matcher.appendReplacement
      1. java.lang.String.substring(Unknown Source)
      2. java.lang.String.subSequence(Unknown Source)
      3. java.util.regex.Matcher.getSubSequence(Unknown Source)
      4. java.util.regex.Matcher.appendReplacement(Unknown Source)
      4 frames
    3. Unknown
      Homework.main
      1. Homework.processTest(Homework.java:90)
      2. Homework.main(Homework.java:52)
      2 frames