JBoss shutdown stalls in QuartzScheduler.shutdown

Solution Verified - Updated -

Issue

  • JBoss shutdown is stalling during application undeployment when shutting down our spring quartz scheduler bean:
"ServerService Thread Pool -- 149" #384 prio=5 os_prio=0 tid=0x00007f7da021c800 nid=0x4a28 in Object.wait() [0x00007f7d709ec000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    at java.lang.Thread.join(Thread.java:1245)
    - locked <0x00000000880dc218> (a org.quartz.core.QuartzSchedulerThread)
    at java.lang.Thread.join(Thread.java:1319)
    at org.quartz.core.QuartzSchedulerThread.halt(QuartzSchedulerThread.java:181)
    at org.quartz.core.QuartzScheduler.shutdown(QuartzScheduler.java:722)
    at org.quartz.impl.StdScheduler.shutdown(StdScheduler.java:206)
    at org.springframework.scheduling.quartz.SchedulerFactoryBean.destroy(SchedulerFactoryBean.java:766)

Environment

  • JBoss Enterprise Application Platform (EAP)
  • Quartz
  • Spring

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.