java.lang.IndexOutOfBoundsException

tip

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafael

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

  • The version of the Klocwork Plugin is 1.7 During publishing of Klocwork results, the Klocwork plugin fails with an exception (java.lang.IndexOutOfBoundsException: Index: 0, Size: 0) if there are no defects to report. This is causing our builds to be marked as failures. For now, we are disabling the reporting of Klocwork issues to solve the problem. The KW xml output file (klocwork_result.xml) is attached. -- Console Output -- Starting the klocwork analysis. Processing 1 files with the pattern 'klocwork_result.xml'. Not changing build status, since no threshold has been exceeded ERROR: Publisher com.thalesgroup.hudson.plugins.klocwork.KloPublisher aborted due to exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:135) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627) at hudson.model.Run.run(Run.java:1459) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)
    via by John Werner,
  • The version of the Klocwork Plugin is 1.7 During publishing of Klocwork results, the Klocwork plugin fails with an exception (java.lang.IndexOutOfBoundsException: Index: 0, Size: 0) if there are no defects to report. This is causing our builds to be marked as failures. For now, we are disabling the reporting of Klocwork issues to solve the problem. The KW xml output file (klocwork_result.xml) is attached. -- Console Output -- Starting the klocwork analysis. Processing 1 files with the pattern 'klocwork_result.xml'. Not changing build status, since no threshold has been exceeded ERROR: Publisher com.thalesgroup.hudson.plugins.klocwork.KloPublisher aborted due to exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:135) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627) at hudson.model.Run.run(Run.java:1459) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)
    via by John Werner,
  • Index Out Of Bounds Exception
    via Stack Overflow by Brandon Cross
    ,
  • Multidimentional Arraylist (Index error)
    via Stack Overflow by SahelSoft
    ,
  • openfire error with no answers
    via Stack Overflow by mahen3d
    ,
    • java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.thalesgroup.hudson.plugins.klocwork.KloPublisher.perform(KloPublisher.java:135) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:680) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:658) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:627) at hudson.model.Run.run(Run.java:1459) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Users with the same issue

    Pilleo
    9 times, last one,
    Agócs Tamás
    8 times, last one,
    nasimk
    2 times, last one,
    Axelo
    7 times, last one,
    osvzs
    12 times, last one,
    225 more bugmates