4 Replies Latest reply on Oct 2, 2012 3:44 PM by Randall Hauch

    Shutdown issue

    Kurt Stam Master

      I'm call shutdown when tomcat is going down, but one ModeShape thread is in wait and will not release:

       

      "modeshape-cron-2-thread-1" prio=5 tid=7ff3201cd800 nid=0x10f201000 waiting on condition [10f200000]

         java.lang.Thread.State: TIMED_WAITING (parking)

              at sun.misc.Unsafe.park(Native Method)

              - parking to wait for  <7f535ff80> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

              at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)

              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)

              at java.util.concurrent.DelayQueue.take(DelayQueue.java:164)

              at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:609)

              at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:602)

              at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

              at java.lang.Thread.run(Thread.java:680)

       

      which sounds like https://issues.jboss.org/browse/MODE-1566

       

      Is this supposed to be fixed, Is there a workaround? Tomcat now hangs on shutdown.

       

      I'm tried using 3.0.0.beta4 and the current master.

       

      Thx,

       

      --Kurt