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

Solutions on the web

via Coderanch by Tushar Goel, 1 year ago
via GitHub by eliac
, 2 years ago
via GitHub by davidtinker
, 8 months ago
via GitHub by ddosoff
, 11 months ago
via Google Groups by Bill Holdsworth, 5 months ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:877)
at java.lang.StringBuilder.substring(StringBuilder.java:72)
at fault_management.AlarmProcessor.processAlarm(AlarmProcessor.java:153)
at fault_management.AlarmProcessor.startAlarmProcessing(AlarmProcessor.java:86)
at fault_management.AlarmService$2.run(AlarmService.java:96)
at java.lang.Thread.run(Thread.java:679)

Users with the same issue

Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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