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

SleepBatchletTest.sleepStop failed with ArrayIndexOutOfBounds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.3.0.Beta7
    • Fix Version/s: 1.3.0.Final
    • Component/s: tests
    • Labels:
      None

      Description

      [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.

        Attachments

          Activity

            People

            Assignee:
            cfang Cheng Fang
            Reporter:
            cfang Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: