activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chinmaya <chinmayaena...@gmail.com>
Subject Exception while shutting down the embedded broker in Jboss:
Date Tue, 21 Jul 2009 11:29:55 GMT

I have embeded ActiveMQ inside Jboss AS. Modified the ra.xml file to read the
embeded broker-config.xml. Please find the attached ra.xml and
broker-config.xml.   
My application is working as expected.
But the problem comes when i tries to shutdown it.

Any suggestions ?

Exceptions :
=========

12:53:50,354 INFO  [BrokerService] ActiveMQ Message Broker (localhost,
ID:CBehera-3677-1248160613758-0:0) is shutting down
12:53:51,026 INFO  [TransportConnector] Connector openwire Stopped
12:53:51,026 INFO  [TransportConnector] Connector vm://localhost Stopped
12:53:51,026 WARN  [ActiveMQManagedConnection] Connection failed:
javax.jms.JMSException: Peer (vm://localhost#0) disposed.
12:53:51,026 INFO  [AdvisoryConsumer] Failed to send remove command:
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
	at
org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1216)
	at
org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1208)
	at org.apache.activemq.AdvisoryConsumer.dispose(AdvisoryConsumer.java:56)
	at
org.apache.activemq.ActiveMQConnection.cleanup(ActiveMQConnection.java:1404)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.cleanup(ActiveMQManagedConnection.java:235)
	at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:341)
	at
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:724)
	at
org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:463)
	at
org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConnectionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:854)
	at
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionErrorOccurred(TxConnectionManager.java:792)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.fireErrorOccurredEvent(ActiveMQManagedConnection.java:176)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.onException(ActiveMQManagedConnection.java:391)
	at
org.apache.activemq.ActiveMQConnection$4.run(ActiveMQConnection.java:1779)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer
(vm://localhost#1) disposed.
	at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:87)
	at
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
	at
org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
	at
org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1214)
	... 15 more
12:53:51,057 WARN  [JBossManagedConnectionPool] ResourceException cleaning
up ManagedConnection:
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1ea7051[state=DESTROY
mc=org.apache.activemq.ra.ActiveMQManagedConnection@1797bd3 handles=0
lastUse=1248160634617 permit=true trackByTx=false
mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@b08682
context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@14ef680
xaResource=org.apache.activemq.ra.ActiveMQManagedConnection$1@1195c88
txSync=null]
javax.resource.ResourceException: Could cleanup the ActiveMQ connection:
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
	at
org.apache.activemq.ra.ActiveMQManagedConnection.cleanup(ActiveMQManagedConnection.java:237)
	at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:341)
	at
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:724)
	at
org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:463)
	at
org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConnectionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:854)
	at
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionErrorOccurred(TxConnectionManager.java:792)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.fireErrorOccurredEvent(ActiveMQManagedConnection.java:176)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.onException(ActiveMQManagedConnection.java:391)
	at
org.apache.activemq.ActiveMQConnection$4.run(ActiveMQConnection.java:1779)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.jms.JMSException: Peer (vm://localhost#1) disposed.
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
	at
org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1216)
	at
org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1208)
	at
org.apache.activemq.ActiveMQConnection.cleanup(ActiveMQConnection.java:1427)
	at
org.apache.activemq.ra.ActiveMQManagedConnection.cleanup(ActiveMQManagedConnection.java:235)
	... 11 more
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer
(vm://localhost#1) disposed.
	at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:87)
	at
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
	at
org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
	at
org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1214)
	... 14 more
12:53:51,135 INFO  [BrokerService] ActiveMQ JMS Message Broker (localhost,
ID:CBehera-3677-1248160613758-0:0) stopped
12:53:51,198 INFO  [QuartzScheduler] Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
12:53:51,198 INFO  [QuartzScheduler] Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED paused.
12:53:51,213 INFO  [SimpleThreadPool] There are still 27 worker threads
active. See javadoc runInThread(Runnable) for a possible explanation
12:53:51,213 INFO  [QuartzScheduler] Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
12:53:51,635 INFO  [TransactionManagerService] Stopping transaction recovery
manager
12:53:51,635 INFO  [TransactionManagerService] Destroying
TransactionManagerService
12:53:52,198 INFO  [HypersonicDatabase] Database standalone closed clean
12:54:00,901 INFO  [ServerImpl] Shutdown complete
Shutdown complete
Halting VM http://www.nabble.com/file/p24585976/broker-config.xml
broker-config.xml  http://www.nabble.com/file/p24585976/ra.xml ra.xml 
-- 
View this message in context: http://www.nabble.com/Exception-while-shutting-down-the-embedded-broker-in-Jboss%3A-tp24585976p24585976.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message