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

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 Bernhard Heuvel, 2 weeks ago
String index out of range: -1
via Stack Overflow by Maanas
, 2 weeks ago
String index out of range: 1
via Stack Overflow by user3344206
, 2 years ago
via GitHub by gzsombor
, 1 year ago
String index out of range: -1
via Coderanch by k doshi, 1 year ago
String index out of range: -1
via Google Groups by shakes, 2 years ago
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1927)
at org.eclipse.kura.web.server.GwtComponentServiceImpl$1.compare(GwtComponentServiceImpl.java:52)
at org.eclipse.kura.web.server.GwtComponentServiceImpl$1.compare(GwtComponentServiceImpl.java:1)
at java.util.TimSort.binarySort(TimSort.java:296)
at java.util.TimSort.sort(TimSort.java:221)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at org.eclipse.kura.web.server.GwtComponentServiceImpl.findComponentConfigurations(GwtComponentServiceImpl.java:49)

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.