Java String Index Out of Range

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I have a project that is configured to git fetch from Atlassian Stash repository. It then runs buildr to compile it. There are many times that the whole process fails with the following:

      FATAL: String index out of range: -1
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1911)
      at hudson.plugins.git.GitChangeSet.isoDateFormat(GitChangeSet.java:179)
      at hudson.plugins.git.GitChangeSet.parseCommit(GitChangeSet.java:118)
      at hudson.plugins.git.GitChangeSet.<init>(GitChangeSet.java:89)
      at hudson.plugins.git.GitChangeLogParser.parseCommit(GitChangeLogParser.java:73)
      at hudson.plugins.git.GitChangeLogParser.parse(GitChangeLogParser.java:57)
      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:894)
      at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:862)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:349)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:346)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:687)
      at hudson.model.Run.execute(Run.java:1743)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Sometimes the process fails immediately after it checks out the revision. Other times, it will finish completely but then display this output at the end and 'fail' even though it completed.

            Assignee:
            Nicolas De Loof
            Reporter:
            Taylor K
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: