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 Coderanch by Rohit Kumar, 1 year ago
This exception has no message.
via Coderanch by Chan Ag, 11 months ago
via https://bugzilla.redhat.com/bugzilla/ by Eiichi Nagai, 2 years ago
java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at appserv.instantiateArchiveReader(ArchiveClassLoader.java:205) at appserv.<init>(ArchiveClassLoader.java:143) at appserv.main(ArchiveClassLoader.java:1212)Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range:-1 at java.lang.String.substring(String.java:1480) at WindowsBootstrap.readLookupFile(WindowsBootstrap.java:201) at WindowsBootstrap.getTempDirectory(WindowsBootstrap.java:41) at WindowsPlatformToolkit.getStaticNativeLibraryDir(WindowsPlatformToolkit.java:57) at com.sun.wizards.core.SystemInterface.getStaticNativeLibraryDir(SystemInterface.java:44) at com.sun.wizards.core.ArchiveReader.<init>(ArchiveReader.java:159) ... 7 more