java.lang.IndexOutOfBoundsException: Index: 0, Size: 1

Jenkins JIRA | Noam Manos | 7 months ago
  1. 0

    I've upgraded Jenkins to version 2.0 (!) and to Excusion Plugin 0.12. But now Exclusion plugins blocks my Matrix Multi job configurations. The definition inside the job is: <org.jvnet.hudson.plugins.exclusion.IdAllocator plugin="Exclusion@0.11"> <ids> <org.jvnet.hudson.plugins.exclusion.DefaultIdType> <name>SEMAPHORE_MATRIX_$\{NODE_NAME}</name> </org.jvnet.hudson.plugins.exclusion.DefaultIdType> </ids> </org.jvnet.hudson.plugins.exclusion.IdAllocator> *+On Plugin version 0.12, it fails to load Matrix configurations due to:+* Apr 24, 2016 2:40:10 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.NullPointerException at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) *+On version 0.11, it fails to load Matrix configurations due to:+* Apr 24, 2016 3:35:30 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.IndexOutOfBoundsException: Index: 0, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.remove(ArrayList.java:492) at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 7 months ago | Noam Manos
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 1
  2. 0

    I've upgraded Jenkins to version 2.0 (!) and to Excusion Plugin 0.12. But now Exclusion plugins blocks my Matrix Multi job configurations. The definition inside the job is: <org.jvnet.hudson.plugins.exclusion.IdAllocator plugin="Exclusion@0.11"> <ids> <org.jvnet.hudson.plugins.exclusion.DefaultIdType> <name>SEMAPHORE_MATRIX_$\{NODE_NAME}</name> </org.jvnet.hudson.plugins.exclusion.DefaultIdType> </ids> </org.jvnet.hudson.plugins.exclusion.IdAllocator> *+On Plugin version 0.12, it fails to load Matrix configurations due to:+* Apr 24, 2016 2:40:10 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.NullPointerException at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) *+On version 0.11, it fails to load Matrix configurations due to:+* Apr 24, 2016 3:35:30 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.IndexOutOfBoundsException: Index: 0, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.remove(ArrayList.java:492) at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 7 months ago | Noam Manos
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 1
  3. 0

    java.lang.IndexOutOfBoundsException: Index: 0, Size: 1

    Stack Overflow | 2 years ago | Michael Piefel
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java programming Exception in thread "main" what is this error?

    Stack Overflow | 2 years ago | Sam Ghanem
    java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
  6. 0

    indexOutOfBoundsException with arraylists deletion

    Stack Overflow | 2 years ago | Collin
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. ajinkya_w 580 times, last 2 months ago
  2. rlovtangen 2 times, last 2 months ago
  3. davidvanlaatum 1 times, last 3 months ago
  4. brunosatriani 38 times, last 5 months ago
  5. sriharshakiran 2 times, last 6 months ago
1 more registered users
5 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.IndexOutOfBoundsException

    Index: 0, Size: 1

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.remove
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.remove(ArrayList.java:492)
    2 frames
  3. org.jvnet.hudson
    IdAllocator.getDescriptor
    1. org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173)
    1 frame
  4. Hudson
    Items.load
    1. hudson.model.Descriptor.toMap(Descriptor.java:986)
    2. hudson.util.DescribableList.toMap(DescribableList.java:151)
    3. hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812)
    4. hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358)
    5. hudson.model.Project.createTransientActions(Project.java:257)
    6. hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755)
    7. hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141)
    8. hudson.model.AbstractProject.onLoad(AbstractProject.java:339)
    9. hudson.model.Project.onLoad(Project.java:98)
    10. hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97)
    11. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573)
    12. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
    13. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
    14. hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617)
    15. hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508)
    16. hudson.model.Items.load(Items.java:327)
    16 frames
  5. jenkins.model
    Jenkins$18.run
    1. jenkins.model.Jenkins$18.run(Jenkins.java:2812)
    1 frame
  6. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    2 frames
  7. jenkins.model
    Jenkins$8.runTask
    1. jenkins.model.Jenkins$8.runTask(Jenkins.java:1009)
    1 frame
  8. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    2 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames