activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <christopher.l.shan...@gmail.com>
Subject Re: Using Broker clusters, javax.management.InstanceAlreadyExistsException:xx
Date Wed, 24 Jun 2015 14:54:53 GMT
Did you set the broker name of the master and slaves to be different? This
is usually the cause of this error.  You can set the broker name on the
BrokerService class or from xml you can set it on the broker element.

On Wed, Jun 24, 2015 at 2:26 AM, softwbc <softwbc@163.com> wrote:

> ActiveMQ version 5.11.1
> I use the Discovery MasterSlave, When I start the slave, the following
> warning occurs every time:
>
> 2015-06-23 15:02:58,962 | WARN  | Failed to register
> queue://xhGeek.censor-request-A |
> org.apache.activemq.network.MBeanBridgeDestination | ActiveMQ Transport:
> tcp:///192.168.83.168:59001@61616
> javax.management.InstanceAlreadyExistsException:
>
> org.apache.activemq:brokerName=broker16701167master,connector=duplexNetworkConnectors,networkConnectorName=#50,networkBridge=tcp_//192.168.83.168_59001,type=Broker,direction=inbound,destinationType=Queue,destinationName=xhGeek.censor-request-A
>     at
> com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)[:1.7.0_45]
>     at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)[:1.7.0_45]
>     at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)[:1.7.0_45]
>     at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)[:1.7.0_45]
>     at
>
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)[:1.7.0_45]
>     at
>
> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)[:1.7.0_45]
>     at
>
> org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:380)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:72)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.network.MBeanBridgeDestination.onInboundMessage(MBeanBridgeDestination.java:97)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.network.MBeanNetworkListener.onInboundMessage(MBeanNetworkListener.java:115)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.network.DemandForwardingBridgeSupport.serviceInboundMessage(DemandForwardingBridgeSupport.java:1680)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.network.DemandForwardingBridgeSupport.serviceRemoteCommand(DemandForwardingBridgeSupport.java:649)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.network.DemandForwardingBridgeSupport$3.onCommand(DemandForwardingBridgeSupport.java:224)[activemq-broker-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)[activemq-client-5.11.1.jar:5.11.1]
>     at
>
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)[activemq-client-5.11.1.jar:5.11.1]
>     at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
>
> The network-broker2 Configuration:
> <networkConnectors>
>         <networkConnector name="linkToCluster1"
> uri="masterslave:(tcp://192.168.83.167:61616,tcp://192.168.83.168:61617
> )?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"
> userName="admin" password="xinh" duplex="true" />
>     </networkConnectors>
>
> How I solve this problem?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Using-Broker-clusters-javax-management-InstanceAlreadyExistsException-xx-tp4698127.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message