camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Zapletal <marco.zaple...@gmail.com>
Subject AMQ Component with embedded broker - problem on war redeploy: javax.jms.JMSException: Could not create Transport. Reason: javax.management.InstanceAlreadyExistsException
Date Thu, 06 Jan 2011 14:51:06 GMT
Hello,

I am using the ActiveMQ Component on my routes with an embedded broker. 
When re-deploying my app, I am always getting an 
InstanceAlreadyExistsException, since the broker of the prior deployment 
seems to be still existing (exception is posted below). In my Spring 
configuration for the AMQ component, I also added the component's 
doStop() method as the bean's destroy method, but that didn't help.

Can anybody give me hint how to configure the AMQ component for proper 
re-deployment or is this a shortcoming of the component implementation?

thanks,
marco

javax.jms.JMSException: Could not create Transport. Reason: 
javax.management.InstanceAlreadyExistsException: 
org.apache.activemq:BrokerName=bla,Type=Broker
         at 
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:239)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:252)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:172)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:125)

~[activemq-pool-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:110)

~[activemq-pool-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:81)

~[activemq-pool-5.2.0.jar:5.2.0]
         at 
org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184) 
~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at 
org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:403)

~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at 
org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:388)

~[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at 
org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:856)

[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at 
org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:838)

[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at 
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:969)

[spring-jms-3.0.5.RELEASE.jar:3.0.5.RELEASE]
         at java.lang.Thread.run(Thread.java:619) [na:1.6.0_21]
Caused by: javax.management.InstanceAlreadyExistsException: 
org.apache.activemq:BrokerName=bla,Type=Broker
         at 
com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) 
~[na:1.6.0_21]
         at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)

~[na:1.6.0_21]
         at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)

~[na:1.6.0_21]
         at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)

~[na:1.6.0_21]
         at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)

~[na:1.6.0_21]
         at 
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) 
~[na:1.6.0_21]
         at 
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1593) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:579) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.broker.BrokerService.start(BrokerService.java:468) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:123)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)

~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80) 
~[activemq-core-5.2.0.jar:5.2.0]
         at 
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:237)

~[activemq-core-5.2.0.jar:5.2.0]
         ... 13 common frames omitted


Mime
View raw message