there is a BrokerService attribute "useShutdownHook" that defaults to true. I think setting this to false in your broker.xml will ensure that broker code will not be executed at JVM shutdown, when the relevant class loaders are no longer available, which could lead to the behavior you describe.
2009/7/13 chu_man_fu <c...@bytron.com>: > > I get the same exceptions when I shut JBoss down. The exception list goes on > for ages and there is no way of halting it. > > Did you find a solution? > > > jinglei wrote: >> >> Here is the stack trace, >> >> 08:40:46,972 ERROR [STDERR] Exception in thread "Persistence Adaptor Task" >> 08:40:46,972 ERROR [STDERR] java.lang.NullPointerException >> 08:40:46,972 ERROR [STDERR] at >> org.apache.log4j.LogManager.getLogger(LogManager.java:188) >> 08:40:46,972 ERROR [STDERR] at >> org.apache.log4j.Logger.getLogger(Logger.java:104) >> 08:40:46,972 ERROR [STDERR] at >> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) >> 08:40:46,972 ERROR [STDERR] at >> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:299) >> 08:40:46,972 ERROR [STDERR] at >> org.apache.activemq.store.amq.AMQPersistenceAdapter.doCheckpoint(AMQPersistenceAdapter.java:380) >> 08:40:46,973 ERROR [STDERR] at >> org.apache.activemq.store.amq.AMQPersistenceAdapter$1.iterate(AMQPersistenceAdapter.java:237) >> 08:40:46,973 ERROR [STDERR] at >> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) >> 08:40:46,973 ERROR [STDERR] at >> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) >> 08:40:46,973 ERROR [STDERR] at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> 08:40:46,973 ERROR [STDERR] at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> 08:40:46,973 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) >> >> This happens every time I tried to hot deploy my application war, which >> uses an embedded ActiveMQ broker. I run on jboss 4.3.0CP02.FP1 with java >> 1.6.0_13. Then I pretty much have to restart jboss to get the application >> back to normal. >> >> >> > > -- > View this message in context: > http://www.nabble.com/Getting-Exception-in-thread-%22Persistence-Adaptor-Task%22-when-hot-deploy-a-war-tp23638192p24462411.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com