-
Bug
-
Resolution: Done
-
Major
-
1.3.0.Beta7
-
None
[ERROR] sleepStop(org.jberet.se.test.SleepBatchletTest) Time elapsed: 0.139 s <<< ERROR!
java.lang.ArrayIndexOutOfBoundsException: 0 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:388) at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:397) at org.jberet.se.test.SleepBatchletTest.sleepStop(SleepBatchletTest.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
the above test failed intermittently. It starts a job, then stops it, and verify the job batch status and step batch status to be both STOPPED. The problem is that when the job was stopped, the job execution may or may not have a chance to start the step execution. So there may be no step execution contained in the said job execution.