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

,

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.

,
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 Jenkins JIRA by Christian Beikov, 1 year ago
String index out of range: -1
via Jenkins JIRA by tomas bohunek, 1 year ago
String index out of range: -1
via Jenkins JIRA by Taylor K, 1 year ago
String index out of range: -1
via jenkins-ci.org by Unknown author, 1 year ago
via Jenkins JIRA by tomas bohunek, 1 year ago
String index out of range: -1
via Google Groups by tboh...@gmail.com (JIRA), 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1955)
at hudson.plugins.git.GitChangeSet.isoDateFormat(GitChangeSet.java:179)
at hudson.plugins.git.GitChangeSet.parseCommit(GitChangeSet.java:118)
at hudson.plugins.git.GitChangeSet.(GitChangeSet.java:89)
at hudson.plugins.git.GitChangeLogParser.parseCommit(GitChangeLogParser.java:73)
at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:67)
at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:44)
at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:25)
at hudson.scm.ChangeLogParser.parse(ChangeLogParser.java:57)
at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:906)
at hudson.model.AbstractBuild.access$600(AbstractBuild.java:107)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
at hudson.model.Run.execute(Run.java:1751)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)

Users with the same issue

8 times, 1 week ago
2 times, 2 weeks ago
4 times, 2 months ago
4803 times, 2 months ago
3 times, 2 months ago

Write tip

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