If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • StringIndexOutOfBoundsException
    via GitHub by loredan
  • error in replaceAll with escp
    via Stack Overflow by user1365697
  • [JENKINS-15300] StringIndexOutOfBounds - Jenkins JIRA
    via by Unknown author,
  • OdiSftp in ODI 12c : String index out of range: 46
    via by Justino Lopes,
    • net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate configuration report at at java.util.concurrent.FutureTask.get( at net.thucydides.core.reports.ReportService.waitForReportGenerationToFinish( at net.thucydides.core.reports.ReportService.generateReportsFor( at net.thucydides.core.reports.ReportService.generateReportsFor( at net.serenitybdd.junit.runners.SerenityRunner.generateReportsFor( at net.serenitybdd.junit.runners.SerenityRunner.generateReports( at at org.apache.maven.surefire.junit4.JUnit4Provider.execute( at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun( at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet( at org.apache.maven.surefire.junit4.JUnit4Provider.invoke( Caused by: net.thucydides.core.reports.ReportGenerationFailedError: Failed to generate reports using net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@2d0e7adf at net.thucydides.core.reports.ReportService.generateReportFor( at net.thucydides.core.reports.ReportService.access$100( at net.thucydides.core.reports.ReportService$ at java.util.concurrent.Executors$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt( at java.util.regex.Matcher.appendReplacement( at java.util.regex.Matcher.replaceAll( at java.lang.String.replaceAll( at net.thucydides.core.requirements.classpath.NarrativeText.definedIn(

    Users with the same issue

    12 times, last one,
    1 times, last one,
    1 times, last one,
    1 times, last one,
    1 times, last one,
    27 more bugmates