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

hivmr.com | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    db:: 3.49::Connection string exception.........Please help me out of it ck

    hivmr.com | 8 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    Problem with Calling PrepareStatement w/ mySQL 5

    Oracle Community | 1 decade ago | 843859
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. 0

    Error Calling a simple stored procedure

    Oracle Community | 1 decade ago | 843859
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug 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.
  6. 0

    Problem with installation fixpack WP_PTF_6011(wsp 6.0.0.0 -> wsp 6.0.1.1)

    Google Groups | 9 years ago | wim.kelc...@telenet.be
    java.lang.reflect.InvocationTargetException

  1. linxiaolong 1 times, last 1 month ago
  2. jokester 1 times, last 1 month ago
  3. tyson925 1 times, last 2 months ago
  4. Torasque 1 times, last 3 months ago
  5. Hronom 32257 times, last 3 months ago
11 more registered users
18 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.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:444)
    1 frame
  3. MySQL jdbc
    Connection.prepareCall
    1. com.mysql.jdbc.StringUtils.indexOfIgnoreCaseRespectQuotes(StringUtils.java:951)
    2. com.mysql.jdbc.DatabaseMetaData.getCallStmtParameterTypes(DatabaseMetaData.java:1277)
    3. com.mysql.jdbc.DatabaseMetaData.getProcedureColumns(DatabaseMetaData.java:3640)
    4. com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:506)
    5. com.mysql.jdbc.CallableStatement.init(CallableStatement.java:401)
    6. com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4072)
    7. com.mysql.jdbc.Connection.prepareCall(Connection.java:4146)
    8. com.mysql.jdbc.Connection.prepareCall(Connection.java:4120)
    8 frames
  4. Unknown
    Connect.main
    1. Connect.main(Connect.java:24)
    1 frame