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 tresf
, 1 year ago
String index out of range: -5
via Eclipse Bugzilla by steffen.pingel, 2 years ago
via Oracle Community by danbou, 1 year ago
String index out of range: -1
via manifoldcf-dev by Karl Wright (JIRA), 3 weeks ago
via manifoldcf-user by Karl Wright, 11 months ago
String index out of range: -1
via manifoldcf-dev by Karl Wright (JIRA), 3 weeks ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -5 at java.lang.String.substring(Unknown Source) at qz.utils.PrintingUtilities.getDriver(Unknown Source) at qz.printer.PrintServiceMatcher.getPrintersJSON(Unknown Source) at qz.ws.PrintSocketClient.processMessage(Unknown Source) at qz.ws.PrintSocketClient.onMessage(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:70) at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:68) at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver$2.run(JettyAnnotatedEventDriver.java:210) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Unknown Source)