4 Replies Latest reply on Dec 16, 2008 4:57 AM by Aleksandar Kostadinov

    java.lang.InterruptedException in NewMsgsWorker

    Jeff Yu Master

      Hi All,

      While working on this issue (https://jira.jboss.org/jira/browse/SOA-708), I got the following exceptions when I press 'Ctrl + C' to shutdown the AS.

      ========================================
      21:28:52,820 INFO [HypersonicDatabase] Database standalone closed clean
      21:28:52,919 WARN [NewMsgsWorker] Interrupted waiting for new msg check
      java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:474)
      at EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
      at EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
      at org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
      at java.lang.Thread.run(Thread.java:595)
      ====================================

      Detailed information from dump thread as following:

      ===========================================
      "WorkManager(2)-1" daemon prio=1 tid=0x5bee9360 nid=0x4d88 in Object.wait() [0x5bc73000..0x5bc73db0]
      at java.lang.Object.wait(Native Method)
      - waiting on <0x85628290> (a EDU.oswego.cs.dl.util.concurrent.Semaphore)
      at java.lang.Object.wait(Object.java:474)
      at EDU.oswego.cs.dl.util.concurrent.Semaphore.acquire(Semaphore.java:108)
      - locked <0x85628290> (a EDU.oswego.cs.dl.util.concurrent.Semaphore)
      at EDU.oswego.cs.dl.util.concurrent.SemaphoreControlledChannel.take(SemaphoreControlledChannel.java:131)
      at org.jboss.resource.adapter.mail.inflow.NewMsgsWorker.run(NewMsgsWorker.java:75)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
      at java.lang.Thread.run(Thread.java:595)
      =======================================

      Can someone please shed me some light on this? What cause would it be?

      Thanks
      Jeff