java.lang.StringIndexOutOfBoundsException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Enable agent debug log
    via by Gerd Katzenbeisser,
  • GitHub comment 2464#244779458
    via GitHub by tomzo
    ,
  • CLOB in BI Publisher Reports
    via by Guest_0607,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: -4 at java.lang.String.charAt(Unknown Source) at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source) at org.bouncycastle.util.encoders.Base64.decode(Unknown Source) at org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source) at org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source) at com.thoughtworks.go.security.Registration.fromJson(Registration.java:49)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    poroszd
    12 times, last one,
    olle.hallin
    1 times, last one,
    linxiaolong
    1 times, last one,
    30 more bugmates