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

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 Google Groups by Ariel, 6 months ago
String index out of range: -7
via Eclipse Bugzilla by dirk_baeumer, 1 year ago
String index out of range: 86
via Eclipse Bugzilla by jim.mcmaster, 1 year ago
via Eclipse Bugzilla by skeet, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -7
at java.lang.String.substring(String.java:1768)

Users with the same issue

4 times, 1 month ago
4803 times, 1 month ago
3 times, 1 month ago
Once, 1 month ago
5 times, 2 months ago

Write tip

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