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

  1. ,

    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.

Solutions on the web

via GitHub by fromgate
, 2 years ago
via Oracle Community by jgf1, 1 year ago
via XWiki.org JIRA by Maxime Mathieu, 1 year ago
via Stack Overflow by user3359138
, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at org.opensolaris.opengrok.history.FileHistoryCache.isRenamedFile(FileHistoryCache.java:141) at org.opensolaris.opengrok.history.FileHistoryCache.store(FileHistoryCache.java:394) at org.opensolaris.opengrok.history.Repository.createCache(Repository.java:337) at org.opensolaris.opengrok.history.HistoryGuru.createCache(HistoryGuru.java:509) at org.opensolaris.opengrok.history.HistoryGuru.access$000(HistoryGuru.java:54) at org.opensolaris.opengrok.history.HistoryGuru$1.run(HistoryGuru.java:560) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)