javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=
Issue
- In Master/Slave setup being managed by fabric, we are seeing below exceptions:
javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=#NAME
- From CLI, its showing both are Slave state:
JBossFuse:admin@esbfabdvtci01> cluster-list amq | grep sbxapamq2
node02 - nodeamq2s, nodeamq2m -
JBossFuse:admin@esbfabdvtci01>
- From hawtio console, Its showing nodeamq2s as stopped and nodeamq2m as in slave mode.
- Logs
2017-01-12 19:13:41,457 | WARN | p-gml-3-thread-1 | ConnectionState | 75 - io.fabric8.fabric-zookeeper - 1.2.0.redhat-621169 | Connection attempt unsuccessful after 61511 (greater than max timeout of 60000). Resetting connection and trying again with a new connection.
----
2017-01-12 19:13:41,536 | INFO | overy-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Disconnected from the group
2017-01-12 19:13:41,536 | INFO | overy-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Disconnecting the broker node02.
2017-01-12 19:13:41,536 | INFO | onStateManager-0 | GitDataStoreImpl | 70 - io.fabric8.fabric-git - 1.2.0.redhat-621169 | Shared Counter (Re)connected, doing a pull
2017-01-12 19:13:41,560 | INFO | it-ds-4-thread-1 | DefaultPullPushPolicy | 70 - io.fabric8.fabric-git - 1.2.0.redhat-621169 | Performing a pull on remote URL: https://<IP:PORT>/git/path
2017-01-12 19:13:41,654 | INFO | overy-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Broker node02 is now the master, starting the broker.
2017-01-12 19:13:41,654 | INFO | overy-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Broker node02 is being started.
----
2017-01-12 19:13:46,561 | ERROR | AMQ-2-thread-1 | BrokerService | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Failed to start Apache ActiveMQ ([node02, nodeCluster2], javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=node02)
2017-01-12 19:13:46,561 | INFO | AMQ-2-thread-1 | BrokerService | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Apache ActiveMQ 5.11.0.redhat-621169 (node02, nodeCluster2) is shutting down
2017-01-12 19:13:46,563 | INFO | AMQ-2-thread-1 | NetworkConnector | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Network Connector DiscoveryNetworkConnector:AP2M_Conn_To_CI1M:BrokerService[node02] stopped
2017-01-12 19:13:46,563 | INFO | AMQ-2-thread-1 | NetworkConnector | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Network Connector DiscoveryNetworkConnector:AP2M_Conn_To_CI2M:BrokerService[node02] stopped
---
---
2017-01-12 19:13:46,568 | INFO | AMQ-2-thread-1 | KahaDBStore | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Stopped KahaDB
2017-01-12 19:13:46,572 | INFO | AMQ-2-thread-1 | BrokerService | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Apache ActiveMQ 5.11.0.redhat-621169 (node02, nodeCluster2) uptime 0.039 seconds
2017-01-12 19:13:46,572 | INFO | AMQ-2-thread-1 | BrokerService | 139 - org.apache.activemq.activemq-osgi - 5.11.0.redhat-621169 | Apache ActiveMQ 5.11.0.redhat-621169 (node02, nodeCluster2) is shutdown
2017-01-12 19:13:46,572 | INFO | AMQ-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Broker node02 failed to start. Will try again in 10 seconds
2017-01-12 19:13:46,573 | ERROR | AMQ-2-thread-1 | ActiveMQServiceFactory | 133 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-621169 | Exception on start: org.apache.activemq:type=Broker,brokerName=node02
javax.management.InstanceAlreadyExistsException: org.apache.activemq:type=Broker,brokerName=node02
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)[:1.8.0_65]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)[:1.8.0_65]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)[:1.8.0_65]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)[:1.8.0_65]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)[:1.8.0_65]
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.