1 Reply Latest reply on Nov 13, 2007 3:15 AM by Aleksandar Kostadinov

    JBoss not shutting down

    george georgovassilis Newbie

      I recently upgraded to 4.0.5GA and I found it impossible to shutdown JBoss with my application deployed. Both crtl+c and/or shutdown -S result in an attempt to shut down, but hang eventually with the appended exception.

      With jboss-4.0.3SP1 it works fine.

      Thank you
      G.

      java: 1.5.0_10
      OS: windows server 2003
      jboss: 4.0.5.GA



      18:16:45,262 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
      18:16:45,262 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
      18:16:45,262 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
      18:16:45,278 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
      18:16:45,278 [JBoss Shutdown Hook] INFO SchedulerFactoryBean - Shutting down Quartz Scheduler
      18:16:45,278 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutting down.
      18:16:45,278 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED paused.
      18:16:45,293 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutdown complete.
      18:16:45,293 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
      18:16:45,309 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
      18:16:45,340 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
      18:16:45,340 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
      18:16:45,340 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
      18:16:45,356 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
      18:16:45,356 [JBoss Shutdown Hook] INFO EhCacheManagerFactoryBean - Shutting down EHCache CacheManager
      18:16:45,356 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
      18:16:45,356 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
      18:16:45,699 [AWT-Windows] ERROR STDERR - Exception in thread "AWT-Windows"
      18:16:47,371 [AWT-Windows] ERROR STDERR - java.lang.IllegalStateException: Shutdown in progress
      18:16:47,371 [AWT-Windows] ERROR STDERR - at java.lang.Shutdown.add(Shutdown.java:81)
      18:16:47,371 [AWT-Windows] ERROR STDERR - at java.lang.Runtime.addShutdownHook(Runtime.java:190)
      18:16:47,371 [AWT-Windows] ERROR STDERR - at sun.awt.windows.WToolkit.run(WToolkit.java:255)
      18:16:47,387 [AWT-Windows] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)

        • 1. Re: JBoss not shutting down
          Aleksandar Kostadinov Novice

          It's a bit late for a reply but I thought it could help someone else seeing that error.

          It should get fixed starting server with setting -Djava.awt.headless=true in JAVA_OPTS or
          if you want to avoid having that in your environment variables,
          you can modify run.sh/bat and put that in the start command.

          For me setting java.awt.headless is a good idea anyway.