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

JIRA | Sławomir Kisiel | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    if output list variable of multi-instantiation task is not preliminarly initialized at particular size (at least the same as input one) it causes an exception: {code} [#|2015-11-21T10:39:39.114+0100|SEVERE|glassfish3.1.2|org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork|_ThreadID=9234;_ThreadName=Thread-2;|THREAD_ID=9234 | HOSTNAME=EFLOW2 | TENANT_ID=1 | java.lang.IndexOutOfBoundsException : "Index: 0, Size: 0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.set(ArrayList.java:444) at org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:272) at org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:233) at org.bonitasoft.engine.execution.state.ExecutingAutomaticActivityStateImpl.afterOnFinish(ExecutingAutomaticActivityStateImpl.java:38) at org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:81) at org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:35) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeState(FlowNodeExecutorImpl.java:128) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.updateState(FlowNodeExecutorImpl.java:182) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.stepForward(FlowNodeExecutorImpl.java:164) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeFlowNode(FlowNodeExecutorImpl.java:317) at org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork.work(ExecuteFlowNodeWork.java:72) at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48) at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:44) at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312) at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53) at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:79) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66) at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56) at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47) at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35) 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) |#] {code} I think it would be better to extend such list as if it is too small or even add a checkbox option to enable such behaviour.

    JIRA | 1 year ago | Sławomir Kisiel
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    if output list variable of multi-instantiation task is not preliminarly initialized at particular size (at least the same as input one) it causes an exception: {code} [#|2015-11-21T10:39:39.114+0100|SEVERE|glassfish3.1.2|org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork|_ThreadID=9234;_ThreadName=Thread-2;|THREAD_ID=9234 | HOSTNAME=EFLOW2 | TENANT_ID=1 | java.lang.IndexOutOfBoundsException : "Index: 0, Size: 0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.set(ArrayList.java:444) at org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:272) at org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:233) at org.bonitasoft.engine.execution.state.ExecutingAutomaticActivityStateImpl.afterOnFinish(ExecutingAutomaticActivityStateImpl.java:38) at org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:81) at org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:35) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeState(FlowNodeExecutorImpl.java:128) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.updateState(FlowNodeExecutorImpl.java:182) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.stepForward(FlowNodeExecutorImpl.java:164) at org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeFlowNode(FlowNodeExecutorImpl.java:317) at org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork.work(ExecuteFlowNodeWork.java:72) at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48) at org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:44) at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312) at org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53) at org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:79) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42) at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66) at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56) at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47) at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35) 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) |#] {code} I think it would be better to extend such list as if it is too small or even add a checkbox option to enable such behaviour.

    JIRA | 1 year ago | Sławomir Kisiel
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    Trying to manipulate objects in an array using an ArrayList

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

    Automated exception search integrated into your IDE

  5. 0

    level07.lesson06.task01

    javarush.ru | 6 months ago
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. poroszd 1 times, last 3 months ago
  2. chenjunjun 1 times, last 4 months ago
  3. tyson925 4 times, last 3 months ago
  4. harshg 1 times, last 9 months ago
  5. sriharshakiran 2 times, last 11 months ago
1 more registered users
7 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: 0

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.set
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.set(ArrayList.java:444)
    2 frames
  3. org.bonitasoft.engine
    BonitaRunnable.run
    1. org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:272)
    2. org.bonitasoft.engine.execution.StateBehaviors.mapDataOutputOfMultiInstance(StateBehaviors.java:233)
    3. org.bonitasoft.engine.execution.state.ExecutingAutomaticActivityStateImpl.afterOnFinish(ExecutingAutomaticActivityStateImpl.java:38)
    4. org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:81)
    5. org.bonitasoft.engine.execution.state.FlowNodeStateWithConnectors.execute(FlowNodeStateWithConnectors.java:35)
    6. org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeState(FlowNodeExecutorImpl.java:128)
    7. org.bonitasoft.engine.execution.FlowNodeExecutorImpl.updateState(FlowNodeExecutorImpl.java:182)
    8. org.bonitasoft.engine.execution.FlowNodeExecutorImpl.stepForward(FlowNodeExecutorImpl.java:164)
    9. org.bonitasoft.engine.execution.FlowNodeExecutorImpl.executeFlowNode(FlowNodeExecutorImpl.java:317)
    10. org.bonitasoft.engine.execution.work.ExecuteFlowNodeWork.work(ExecuteFlowNodeWork.java:72)
    11. org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:48)
    12. org.bonitasoft.engine.execution.work.TxBonitaWork$1.call(TxBonitaWork.java:44)
    13. org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:312)
    14. org.bonitasoft.engine.execution.work.TxBonitaWork.work(TxBonitaWork.java:53)
    15. org.bonitasoft.engine.execution.work.LockProcessInstanceWork.work(LockProcessInstanceWork.java:79)
    16. org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
    17. org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
    18. org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
    19. org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
    20. org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
    21. org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
    22. org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
    22 frames
  4. 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