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.

  2. ,
    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 Spring JIRA by Mduduzi Keswa, 2 years ago
String index out of range: -1
via Spring JIRA by Matej Spiller-Muys, 1 year ago
String index out of range: -1
via Spring JIRA by Matej Spiller-Muys, 2 years ago
String index out of range: -1
via GitHub by LemADEC
, 2 years ago
String index out of range: -1
via Oracle Community by 843835, 2 years ago
via YouTrack by Unknown author, 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:1937)	at org.springframework.roo.support.util.FileUtils.backOneDirectory(FileUtils.java:163)	at org.springframework.roo.support.util.FileUtils.getFirstDirectory(FileUtils.java:151)	at org.springframework.roo.support.util.FileUtilsTest.assertFirstDirectory(FileUtilsTest.java:194)	at org.springframework.roo.support.util.FileUtilsTest.testGetFirstDirectoryOfExistingFile(FileUtilsTest.java:214)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)	at org.junit.runners.ParentRunner.run(ParentRunner.java:292)	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)	at $Proxy0.invoke(Unknown Source)	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)