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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2AS
    • 2.6.0AS
    • Async Scaleout
    • 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

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: