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

Jenkins JIRA | Andrea Wong | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rafael . Or join the community to write better ones.
  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
    samebug tip
    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
    samebug tip
    This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859
  6. 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

  1. osvzs 1 times, last 3 weeks ago
  2. Indri Yunita 7 times, last 1 month ago
  3. Pilleo 1 times, last 1 month ago
  4. Andreas Häber 2 times, last 2 months ago
  5. QrCeric 1 times, last 2 months ago
25 more registered users
59 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