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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips


Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.

via GitHub by Omertron

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

Solutions on the web

via hsqldb by sfox0815
, 1 year ago
String index out of range: -12
via Oracle Community by 843836, 1 year ago
String index out of range: -9
via Eclipse Bugzilla by Darin_Swanson, 6 months ago
via GitHub by RichardWarburton
, 4 months ago
String index out of range: -11
via Coderanch by jack parker, 1 year ago
String index out of range: -13
java.lang.StringIndexOutOfBoundsException: String index out of range: -12
at java.lang.String.substring(
at org.hsqldb.Table.setIndexRoots(Unknown Source)
at org.hsqldb.DatabaseCommandInterpreter.processSet(Unknown Source)
at org.hsqldb.DatabaseCommandInterpreter.executePart(Unknown Source)
at org.hsqldb.DatabaseCommandInterpreter.execute(Unknown Source)
at org.hsqldb.Session.sqlExecuteDirectNoPreChecks(Unknown Source)
at org.hsqldb.scriptio.ScriptReaderText.readDDL(Unknown Source)
at org.hsqldb.scriptio.ScriptReaderBase.readAll(Unknown Source)
at org.hsqldb.Log.readScript(Unknown Source)
at Source)
at org.hsqldb.Logger.openLog(Unknown Source)
at org.hsqldb.Database.reopen(Unknown Source)
at Source)
at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
at org.hsqldb.DatabaseManager.newSession(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)

Users with the same issue

8 times, 6 days ago
2 times, 1 week ago
4 times, 2 months ago
4803 times, 2 months ago
3 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.