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

Samebug tips

,
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"

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

Solutions on the web

via Jenkins JIRA by Jorge Araya Navarro, 1 year ago
String index out of range: -1
via Jenkins JIRA by Jorge Araya Navarro, 1 year ago
String index out of range: -1
via Apereo Issues by Michael, 1 year ago
String index out of range: -1
via Stack Overflow by DevRj
, 3 months ago
via YouTrack by Unknown author, 1 year ago
via GitHub by Sarpedion
, 1 year ago
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at org.jclouds.scriptbuilder.statements.login.UserAdd.render(UserAdd.java:193)
at org.jclouds.scriptbuilder.domain.StatementList.render(StatementList.java:47)
at org.jclouds.scriptbuilder.statements.login.AdminAccess.render(AdminAccess.java:430)
at org.jclouds.scriptbuilder.domain.StatementList.render(StatementList.java:47)
at org.jclouds.scriptbuilder.domain.CreateRunScript.addUnixRunScript(CreateRunScript.java:136)
at org.jclouds.scriptbuilder.domain.CreateRunScript.render(CreateRunScript.java:110)
at org.jclouds.scriptbuilder.domain.StatementList.render(StatementList.java:47)
at org.jclouds.scriptbuilder.domain.SwitchArg.render(SwitchArg.java:91)
at org.jclouds.scriptbuilder.ScriptBuilder.render(ScriptBuilder.java:127)
at org.jclouds.scriptbuilder.InitScript.render(InitScript.java:327)
at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.doCall(RunScriptOnNodeAsInitScriptUsingSsh.java:108)
at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.future(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:68)
at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.doCall(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:60)
at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.call(RunScriptOnNodeAsInitScriptUsingSsh.java:77)
at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:125)
at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:146)
at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:53)
at shaded.com.google.common.util.concurrent.Futures$1.apply(Futures.java:711)
at shaded.com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:849)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Users with the same issue

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, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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