jbbarquero (84) [Avatar] Offline
#1
Does anyone have this error?

Failed to send remove command: javax.jms.JMSException: Peer (vm://localhost#1) disposed.

After the test class, it seems that ActiveMQ tries to shut down the Message Broker but it finds some problems.
jbbarquero (84) [Avatar] Offline
#2
Re: Failed to send remove command to JMS: Peer (vm://localhost#1) disposed
A stack trace:

2012-10-02 12:58:32,407 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ Message Broker (localhost, IDsmilie1677-W7-49807-1349175510301-0:1) is shutting down
2012-10-02 12:58:32,407 [ActiveMQ ShutdownHook] DEBUG org.apache.activemq.broker.BrokerService - Caught exception, must be shutting down: java.lang.IllegalStateException: Shutdown in progress
2012-10-02 12:58:32,409 [Thread-4] INFO org.springframework.context.support.GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@1893efe: startup date [Tue Oct 02 12:58:18 CEST 2012]; root of context hierarchy
2012-10-02 12:58:32,410 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.jms.listener.DefaultMessageListenerContainer#0'
2012-10-02 12:58:32,410 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
2012-10-02 12:58:32,412 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.jms.listener.DefaultMessageListenerContainer#0'
2012-10-02 12:58:32,412 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'lifecycleProcessor'
2012-10-02 12:58:32,412 [Thread-4] INFO org.springframework.context.support.DefaultLifecycleProcessor - Stopping beans in phase 2147483647
2012-10-02 12:58:32,412 [Thread-4] DEBUG org.springframework.context.support.DefaultLifecycleProcessor - Asking bean 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' of type [class org.springframework.jms.listener.DefaultMessageListenerContainer] to stop
2012-10-02 12:58:32,472 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.TransportConnector - Connector tcp://localhost:61616 Stopped
2012-10-02 12:58:32,472 [ActiveMQ ShutdownHook] DEBUG org.apache.activemq.transport.vm.VMTransportFactory - Shutting down VM connectors for broker: localhost
2012-10-02 12:58:32,473 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Stopping connection: vm://localhost#0
2012-10-02 12:58:32,474 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Stopped transport: vm://localhost#0
2012-10-02 12:58:32,474 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Cleaning up connection resources: vm://localhost#0
2012-10-02 12:58:32,474 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - remove connection id: IDsmilie1677-W7-49807-1349175510301-2:1
2012-10-02 12:58:32,474 [ActiveMQ Task] DEBUG org.apache.activemq.broker.region.AbstractRegion - localhost removing consumer: IDsmilie1677-W7-49807-1349175510301-2:1:1:1 for destination: queue://jms.queue.producer
2012-10-02 12:58:32,475 [ActiveMQ Task] DEBUG org.apache.activemq.broker.region.Queue - remove sub: QueueSubscription: consumer=IDsmilie1677-W7-49807-1349175510301-2:1:1:1, destinations=1, dispatched=0, delivered=0, pending=0, lastDeliveredSeqId: 0, dequeues: 1, dispatched: 1, inflight: 0
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.region.AbstractRegion - localhost removing consumer: IDsmilie1677-W7-49807-1349175510301-2:1:-1:1 for destination: topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Connection Stopped: vm://localhost#0
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Stopping connection: vm://localhost#2
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Stopped transport: vm://localhost#2
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Cleaning up connection resources: vm://localhost#2
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - remove connection id: IDsmilie1677-W7-49807-1349175510301-2:2
2012-10-02 12:58:32,477 [ActiveMQ Task] DEBUG org.apache.activemq.broker.region.AbstractRegion - localhost removing consumer: IDsmilie1677-W7-49807-1349175510301-2:2:-1:1 for destination: topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic
2012-10-02 12:58:32,478 [ActiveMQ Task] DEBUG org.apache.activemq.broker.TransportConnection - Connection Stopped: vm://localhost#2
2012-10-02 12:58:32,478 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.TransportConnector - Connector vm://localhost Stopped
2012-10-02 12:58:32,488 [ActiveMQ ShutdownHook] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (localhost, IDsmilie1677-W7-49807-1349175510301-0:1) stopped
2012-10-02 12:58:33,266 [org.springframework.jms.listener.DefaultMessageListenerContainer#0-1] DEBUG org.springframework.context.support.DefaultLifecycleProcessor - Bean 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' completed its stop procedure
2012-10-02 12:58:33,266 [Thread-4] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@9934d4: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,org.springframework.context.config.internalBeanConfigurerAspect,myEntity,producerImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,transactionManager,org.springframework.transaction.config.internalTransactionAspect,entityManagerFactory,org.apache.activemq.xbean.XBeanBrokerService#0,jmsFactory,cachingConnectionFactory,jmsTemplate,jms.queue.producer,org.springframework.jms.listener.DefaultMessageListenerContainer#0,messageListener,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
2012-10-02 12:58:33,266 [Thread-4] DEBUG org.springframework.beans.factory.support.DisposableBeanAdapter - Invoking destroy() on bean with name 'org.springframework.jms.listener.DefaultMessageListenerContainer#0'
2012-10-02 12:58:33,266 [Thread-4] DEBUG org.springframework.jms.listener.DefaultMessageListenerContainer - Shutting down JMS listener container
2012-10-02 12:58:33,267 [Thread-4] DEBUG org.springframework.jms.listener.DefaultMessageListenerContainer - Waiting for shutdown of message listener invokers
2012-10-02 12:58:33,267 [org.springframework.jms.listener.DefaultMessageListenerContainer#0-1] DEBUG org.springframework.jms.listener.DefaultMessageListenerContainer - Lowered scheduled invoker count: 0
2012-10-02 12:58:33,269 [Thread-4] DEBUG org.apache.activemq.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:1259)
at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1251)
at org.apache.activemq.AdvisoryConsumer.dispose(AdvisoryConsumer.java:56)
at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:615)
at org.springframework.jms.connection.ConnectionFactoryUtils.releaseConnection(ConnectionFactoryUtils.java:80)
at org.springframework.jms.listener.AbstractJmsListeningContainer.shutdown(AbstractJmsListeningContainer.java:240)
at org.springframework.jms.listener.AbstractJmsListeningContainer.destroy(AbstractJmsListeningContainer.java:173)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:211)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:49smilie
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:963)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:90)
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:1257)
... 13 more
2012-10-02 12:58:33,270 [Thread-4] DEBUG org.springframework.jms.connection.ConnectionFactoryUtils - Could not close JMS Connection
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1334)
at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:652)
at org.springframework.jms.connection.ConnectionFactoryUtils.releaseConnection(ConnectionFactoryUtils.java:80)
at org.springframework.jms.listener.AbstractJmsListeningContainer.shutdown(AbstractJmsListeningContainer.java:240)
at org.springframework.jms.listener.AbstractJmsListeningContainer.destroy(AbstractJmsListeningContainer.java:173)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:211)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:49smilie
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:963)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:90)
at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
at org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:81)
at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:91)
at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1321)
... 11 more
2012-10-02 12:58:33,271 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean '(inner bean)': [org.springframework.jms.listener.DefaultMessageListenerContainer#0]
2012-10-02 12:58:33,271 [Thread-4] DEBUG org.springframework.context.annotation.CommonAnnotationBeanPostProcessor - Invoking destroy method on bean 'org.apache.activemq.xbean.XBeanBrokerService#0': public void org.apache.activemq.xbean.XBeanBrokerService.destroy() throws java.lang.Exception
2012-10-02 12:58:33,271 [Thread-4] DEBUG org.springframework.context.annotation.CommonAnnotationBeanPostProcessor - Invoking destroy method on bean 'org.apache.activemq.xbean.XBeanBrokerService#0': public void org.apache.activemq.broker.BrokerService.stop() throws java.lang.Exception
2012-10-02 12:58:33,271 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean 'amq:transportConnector#e06940': [org.apache.activemq.xbean.XBeanBrokerService#0]
2012-10-02 12:58:33,272 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean 'entityManagerFactory': [com.malsolo.jms.domain.MyEntity]
2012-10-02 12:58:33,272 [Thread-4] DEBUG org.springframework.beans.factory.support.DisposableBeanAdapter - Invoking destroy() on bean with name 'entityManagerFactory'
2012-10-02 12:58:33,272 [Thread-4] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'persistenceUnit'
2012-10-02 12:58:33,272 [Thread-4] DEBUG org.hibernate.internal.SessionFactoryImpl - HHH000031: Closing
2012-10-02 12:58:33,272 [Thread-4] DEBUG org.hibernate.ejb.internal.EntityManagerFactoryRegistry - Remove: name=persistenceUnit
2012-10-02 12:58:33,272 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#18235ed': [entityManagerFactory]
2012-10-02 12:58:33,273 [Thread-4] DEBUG org.springframework.beans.factory.support.DisposableBeanAdapter - Invoking destroy method 'close' on bean with name 'dataSource'
2012-10-02 12:58:33,654 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean 'producerImpl': [com.malsolo.jms.domain.JmsTest]
2012-10-02 12:58:33,654 [Thread-4] DEBUG org.springframework.beans.factory.support.DisposableBeanAdapter - Invoking destroy() on bean with name 'cachingConnectionFactory'
2012-10-02 12:58:33,654 [Thread-4] DEBUG org.springframework.jms.connection.CachingConnectionFactory - Closing cached Session: ActiveMQSession {id=IDsmilie1677-W7-49807-1349175510301-2:2:1,started=false}
2012-10-02 12:58:33,655 [Thread-4] DEBUG org.springframework.jms.connection.CachingConnectionFactory - Closing shared JMS Connection: ActiveMQConnection {id=IDsmilie1677-W7-49807-1349175510301-2:2,clientId=IDsmilie1677-W7-49807-1349175510301-3:2,started=false}
2012-10-02 12:58:33,655 [Thread-4] DEBUG org.apache.activemq.AdvisoryConsumer - Failed to send remove command: javax.jms.JMSException: Peer (vm://localhost#3) disposed.
javax.jms.JMSException: Peer (vm://localhost#3) disposed.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1259)
at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1251)
at org.apache.activemq.AdvisoryConsumer.dispose(AdvisoryConsumer.java:56)
at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:615)
at org.springframework.jms.connection.SingleConnectionFactory.closeConnection(SingleConnectionFactory.java:426)
at org.springframework.jms.connection.SingleConnectionFactory.resetConnection(SingleConnectionFactory.java:321)
at org.springframework.jms.connection.CachingConnectionFactory.resetConnection(CachingConnectionFactory.java:199)
at org.springframework.jms.connection.SingleConnectionFactory.destroy(SingleConnectionFactory.java:312)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:211)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:49smilie
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:963)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#3) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:90)
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:1257)
... 14 more
2012-10-02 12:58:33,655 [Thread-4] DEBUG org.springframework.jms.connection.CachingConnectionFactory - Could not close shared JMS Connection
javax.jms.JMSException: Peer (vm://localhost#3) disposed.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1334)
at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:652)
at org.springframework.jms.connection.SingleConnectionFactory.closeConnection(SingleConnectionFactory.java:426)
at org.springframework.jms.connection.SingleConnectionFactory.resetConnection(SingleConnectionFactory.java:321)
at org.springframework.jms.connection.CachingConnectionFactory.resetConnection(CachingConnectionFactory.java:199)
at org.springframework.jms.connection.SingleConnectionFactory.destroy(SingleConnectionFactory.java:312)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:211)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:49smilie
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1071)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1045)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:963)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#3) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:90)
at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
at org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:81)
at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:91)
at org.apache.activemq.ActiveMQConnection.doSyncSendPacket(ActiveMQConnection.java:1321)
... 12 more
2012-10-02 12:58:33,656 [Thread-4] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Retrieved dependent beans for bean 'myEntityDataOnDemand': [com.malsolo.jms.domain.MyEntityIntegrationTest]
2012-10-02 12:58:33,656 [Thread-4] DEBUG org.springframework.beans.factory.support.DisposableBeanAdapter - Invoking destroy() on bean with name 'org.springframework.context.config.internalBeanConfigurerAspect'