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

Jenkins JIRA | Andrea Wong | 2 years ago
  1. 0

    When trying to build the instance through Jenkins, it keeps failing with the following messages. I've tried creating the instance manually on ElasticBox with the same box template and that created without any problem. {code} [ElasticBox] - Executing Deploy Box build step [ElasticBox] - Deploying box null ERROR: Build step failed with exception java.lang.StringIndexOutOfBoundsException: String index out of range: -31 at java.lang.String.substring(String.java:1911) at com.elasticbox.Client.getSchemaVersion(Client.java:107) at com.elasticbox.Client.deploy(Client.java:640) at com.elasticbox.jenkins.builders.DeployBox.deploy(DeployBox.java:174) at com.elasticbox.jenkins.builders.DeployBox.doPerform(DeployBox.java:290) at com.elasticbox.jenkins.builders.DeployBox.perform(DeployBox.java:330) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Build step 'ElasticBox - Deploy Box' marked build as failure Finished: FAILURE {code}

    Jenkins JIRA | 2 years ago | Andrea Wong
    java.lang.StringIndexOutOfBoundsException: String index out of range: -31
  2. 0

    When trying to build the instance through Jenkins, it keeps failing with the following messages. I've tried creating the instance manually on ElasticBox with the same box template and that created without any problem. {code} [ElasticBox] - Executing Deploy Box build step [ElasticBox] - Deploying box null ERROR: Build step failed with exception java.lang.StringIndexOutOfBoundsException: String index out of range: -31 at java.lang.String.substring(String.java:1911) at com.elasticbox.Client.getSchemaVersion(Client.java:107) at com.elasticbox.Client.deploy(Client.java:640) at com.elasticbox.jenkins.builders.DeployBox.deploy(DeployBox.java:174) at com.elasticbox.jenkins.builders.DeployBox.doPerform(DeployBox.java:290) at com.elasticbox.jenkins.builders.DeployBox.perform(DeployBox.java:330) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Build step 'ElasticBox - Deploy Box' marked build as failure Finished: FAILURE {code}

    Jenkins JIRA | 2 years ago | Andrea Wong
    java.lang.StringIndexOutOfBoundsException: String index out of range: -31
  3. 0

    [HTML Comment] OutOfBoundsException when a comment contains a &

    Eclipse Bugzilla | 4 years ago | mathieu.velten
    java.lang.StringIndexOutOfBoundsException: String index out of range: -31
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to fix the ERROR [[jsp]] Servlet.service() for servlet jsp threw exception?

    Stack Overflow | 2 years ago | balaguru
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  6. 0

    [JVM] Pretty Formatter error

    GitHub | 3 years ago | TarekSaid
    java.lang.StringIndexOutOfBoundsException: String index out of range: -38

  1. richard77 2 times, last 3 days ago
  2. kjhdofjosvs 2 times, last 7 days ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 3 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 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: -31

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1911)
    1 frame
  3. com.elasticbox
    Client.deploy
    1. com.elasticbox.Client.getSchemaVersion(Client.java:107)
    2. com.elasticbox.Client.deploy(Client.java:640)
    2 frames
  4. com.elasticbox.jenkins
    DeployBox.perform
    1. com.elasticbox.jenkins.builders.DeployBox.deploy(DeployBox.java:174)
    2. com.elasticbox.jenkins.builders.DeployBox.doPerform(DeployBox.java:290)
    3. com.elasticbox.jenkins.builders.DeployBox.perform(DeployBox.java:330)
    3 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    3. hudson.model.Build$BuildExecution.build(Build.java:205)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    6. hudson.model.Run.execute(Run.java:1744)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:98)
    9. hudson.model.Executor.run(Executor.java:374)
    9 frames