java.lang.StringIndexOutOfBoundsException: String index out of range: 1

Atlassian JIRA | Ajay Sridhar [Atlassian] | 9 years ago
  1. 0

    One of the things Bamboo does while parsing is, it tries to tidy up the methodname, For instance, if I had a methodname called TestUserExists - Bamboo will remove the 'Test' letters If the method name was just called "Test", then further in the code Bamboo fails to parse with "java.lang.StringIndexOutOfBoundsException" Originally a Support issue https://support.atlassian.com/browse/BSP-245 {code}java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at com.atlassian.bamboo.results.tests.TestResults.getMethodName(TestResults.java:89) at com.atlassian.bamboo.results.tests.TestCaseResultWrapper.getMethodName(TestCaseResultWrapper.java:205) at com.atlassian.bamboo.index.TestCaseResultDocument.getDocument(TestCaseResultDocument.java:67) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResultKeepConnection(DefaultBuildResultsIndexer.java:192) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResult(DefaultBuildResultsIndexer.java:111) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:74) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) 2007-09-03 16:46:16,722 INFO [BAM:Default Queue:BuildExe] [DefaultErrorHandler] Recording error: Could not save the build results : Test - Defaultasf java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at com.atlassian.bamboo.results.tests.TestResults.getMethodName(TestResults.java:89) at com.atlassian.bamboo.results.tests.TestCaseResultWrapper.getMethodName(TestCaseResultWrapper.java:205) at com.atlassian.bamboo.index.TestCaseResultDocument.getDocument(TestCaseResultDocument.java:67) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResultKeepConnection(DefaultBuildResultsIndexer.java:192) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResult(DefaultBuildResultsIndexer.java:111) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:74) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) {code}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  2. 0

    One of the things Bamboo does while parsing is, it tries to tidy up the methodname, For instance, if I had a methodname called TestUserExists - Bamboo will remove the 'Test' letters If the method name was just called "Test", then further in the code Bamboo fails to parse with "java.lang.StringIndexOutOfBoundsException" Originally a Support issue https://support.atlassian.com/browse/BSP-245 {code}java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at com.atlassian.bamboo.results.tests.TestResults.getMethodName(TestResults.java:89) at com.atlassian.bamboo.results.tests.TestCaseResultWrapper.getMethodName(TestCaseResultWrapper.java:205) at com.atlassian.bamboo.index.TestCaseResultDocument.getDocument(TestCaseResultDocument.java:67) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResultKeepConnection(DefaultBuildResultsIndexer.java:192) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResult(DefaultBuildResultsIndexer.java:111) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:74) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) 2007-09-03 16:46:16,722 INFO [BAM:Default Queue:BuildExe] [DefaultErrorHandler] Recording error: Could not save the build results : Test - Defaultasf java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.substring(String.java:1765) at com.atlassian.bamboo.results.tests.TestResults.getMethodName(TestResults.java:89) at com.atlassian.bamboo.results.tests.TestCaseResultWrapper.getMethodName(TestCaseResultWrapper.java:205) at com.atlassian.bamboo.index.TestCaseResultDocument.getDocument(TestCaseResultDocument.java:67) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResultKeepConnection(DefaultBuildResultsIndexer.java:192) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResult(DefaultBuildResultsIndexer.java:111) at com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:74) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) {code}

    Atlassian JIRA | 9 years ago | Ajay Sridhar [Atlassian]
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  3. 0

    Grails User (Old Archive) - IllegalStateException: No thread-bound request found after upgrade to 1.0.3

    nabble.com | 11 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.StringIndexOutOfBoundsException: String index out of range: 1

    YouTrack | 8 years ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
  6. 0

    java.lang.StringIndexOutOfBoundsException: String index out of range: 1

    YouTrack | 8 years ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
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: 1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1765)
    1 frame
  3. com.atlassian.bamboo
    SaveBuildTask.call
    1. com.atlassian.bamboo.results.tests.TestResults.getMethodName(TestResults.java:89)
    2. com.atlassian.bamboo.results.tests.TestCaseResultWrapper.getMethodName(TestCaseResultWrapper.java:205)
    3. com.atlassian.bamboo.index.TestCaseResultDocument.getDocument(TestCaseResultDocument.java:67)
    4. com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResultKeepConnection(DefaultBuildResultsIndexer.java:192)
    5. com.atlassian.bamboo.index.DefaultBuildResultsIndexer.indexBuildResult(DefaultBuildResultsIndexer.java:111)
    6. com.atlassian.bamboo.build.pipeline.tasks.SaveBuildTask.call(SaveBuildTask.java:74)
    6 frames
  4. Backport of JSR 166
    ThreadPoolExecutor$Worker.run
    1. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
    2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
    3. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
    3 frames
  5. com.atlassian.bamboo
    NamedThreadFactory$1.run
    1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:31)
    1 frame
  6. Backport of JSR 166
    ThreadHelpers$1.run
    1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame