Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-401

SleepBatchletTest.sleepStop failed with ArrayIndexOutOfBounds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Final
    • 1.3.0.Beta7
    • tests
    • 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.

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: