Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3788

Fix UIMA-AS java.lang.IllegalStateException: Timer already cancelled.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.2AS
    • Fix Version/s: 2.6.0AS
    • Component/s: Async Scaleout
    • Labels:
      None

      Description

      Looks like another race condition. The "java.lang.IllegalStateException: Timer already cancelled" usually occurs when one thread cancels a Timer, while another tries to start it. Supporting stack trace:

      26 Apr 2014 12:37:27,859 INFO JD.WorkItemStateKeeper - record N/A seqNo:1120214 start
      26 Apr 2014 12:37:27,862 INFO JD.WorkItemStateKeeper - record N/A seqNo:1120214 queued
      26 Apr 2014 12:37:27,864 INFO JD.WorkItemStateKeeper - record N/A seqNo:1120214 operating
      26 Apr 2014 12:37:27,866 INFO JD.WorkItemStateKeeper - record N/A seqNo:1120214 operating
      26 Apr 2014 12:37:27,900 INFO JD.WorkItemStateKeeper - record N/A seqNo:1120212 ended
      Apr 26, 2014 12:37:27 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl$2 onMessage
      WARNING:
      java.lang.IllegalStateException: Timer already cancelled.
      at java.util.Timer.sched(Timer.java:408)
      at java.util.Timer.schedule(Timer.java:219)
      at org.apache.uima.aae.delegate.Delegate.startDelegateTimer(Delegate.java:726)
      at org.apache.uima.aae.delegate.Delegate.removeCasFromOutstandingList(Delegate.java:598)
      at org.apache.uima.aae.delegate.Delegate.removeCasFromOutstandingList(Delegate.java:513)
      at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.handleProcessReply(BaseUIMAAsynchronousEngi
      neCommon_impl.java:1434)
      at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl$2.run(BaseUIMAAsynchronousEngineCommon_impl
      .java:2031)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
      at java.lang.Thread.run(Thread.java:780)

        Attachments

          Activity

            People

            • Assignee:
              cwiklik Jerry Cwiklik
              Reporter:
              cwiklik Jerry Cwiklik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: