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
    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Pogo 8.1.14 multiclass tree exception

    GitHub | 2 years ago | tango-tickets-migrator
    java.lang.StringIndexOutOfBoundsException: String index out of range: -31

  1. jokester 3 times, last 2 weeks ago
  2. richard77 2 times, last 1 month ago
  3. MoYapro 1 times, last 1 month ago
  4. kjhdofjosvs 2 times, last 2 months ago
  5. archenroot 17 times, last 2 months ago
20 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