java.lang.StringIndexOutOfBoundsException: String index out of range: -114

Jenkins JIRA | rejesi | 4 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rafael . Or join the community to write better ones.
  1. 0

    We had been getting these exceptions every now and again intermittently but then the next build would be fine. Now we are experiencing them much more frequently. Here is what is seen as the final output to the log file: 18:40:19 [xxxREPO] $ git log --raw --first-parent --format="zzREPOzz%H%n%an<%ae>%aD%n%cn<%ce>%cD%n%s%n%n%byyREPOyy" 66da983ea1516b76f1cc6a078940abd2509862f1..27ec061e06fa872f8d01dad5322534df2559d156 18:40:19 FATAL: String index out of range: -114 18:40:19 java.lang.StringIndexOutOfBoundsException: String index out of range: -114 18:40:19 at java.lang.String.substring(String.java:1949) 18:40:19 at hudson.plugins.repo.ChangeLog.generateChangeLog(ChangeLog.java:167) 18:40:19 at hudson.plugins.repo.ChangeLog.saveChangeLog(ChangeLog.java:239) 18:40:19 at hudson.plugins.repo.RepoScm.checkout(RepoScm.java:259) 18:40:19 at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) 18:40:19 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) 18:40:19 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 18:40:19 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) 18:40:19 at hudson.model.Run.execute(Run.java:1502) 18:40:19 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 18:40:19 at hudson.model.ResourceController.execute(ResourceController.java:88) 18:40:19 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | rejesi
    java.lang.StringIndexOutOfBoundsException: String index out of range: -114
  2. 0

    We had been getting these exceptions every now and again intermittently but then the next build would be fine. Now we are experiencing them much more frequently. Here is what is seen as the final output to the log file: 18:40:19 [xxxREPO] $ git log --raw --first-parent --format="zzREPOzz%H%n%an<%ae>%aD%n%cn<%ce>%cD%n%s%n%n%byyREPOyy" 66da983ea1516b76f1cc6a078940abd2509862f1..27ec061e06fa872f8d01dad5322534df2559d156 18:40:19 FATAL: String index out of range: -114 18:40:19 java.lang.StringIndexOutOfBoundsException: String index out of range: -114 18:40:19 at java.lang.String.substring(String.java:1949) 18:40:19 at hudson.plugins.repo.ChangeLog.generateChangeLog(ChangeLog.java:167) 18:40:19 at hudson.plugins.repo.ChangeLog.saveChangeLog(ChangeLog.java:239) 18:40:19 at hudson.plugins.repo.RepoScm.checkout(RepoScm.java:259) 18:40:19 at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) 18:40:19 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) 18:40:19 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 18:40:19 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) 18:40:19 at hudson.model.Run.execute(Run.java:1502) 18:40:19 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 18:40:19 at hudson.model.ResourceController.execute(ResourceController.java:88) 18:40:19 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | rejesi
    java.lang.StringIndexOutOfBoundsException: String index out of range: -114
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  5. 0
    samebug 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

  1. osvzs 2 times, last 6 days ago
  2. Indri Yunita 7 times, last 2 months ago
  3. Pilleo 1 times, last 2 months ago
  4. Andreas Häber 2 times, last 3 months ago
  5. QrCeric 1 times, last 3 months ago
25 more registered users
59 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -114

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1949)
    1 frame
  3. hudson.plugins.repo
    RepoScm.checkout
    1. hudson.plugins.repo.ChangeLog.generateChangeLog(ChangeLog.java:167)
    2. hudson.plugins.repo.ChangeLog.saveChangeLog(ChangeLog.java:239)
    3. hudson.plugins.repo.RepoScm.checkout(RepoScm.java:259)
    3 frames
  4. Hudson
    AbstractBuild$AbstractBuildExecution.defaultCheckout
    1. hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
    2 frames
  5. jenkins.scm
    SCMCheckoutStrategy.checkout
    1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
    1 frame
  6. Hudson
    Executor.run
    1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
    2. hudson.model.Run.execute(Run.java:1502)
    3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    4. hudson.model.ResourceController.execute(ResourceController.java:88)
    5. hudson.model.Executor.run(Executor.java:236)
    5 frames