activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Lang (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-2819) javax.management.InstanceAlreadyExistsException when registrating an MBean
Date Fri, 09 Jul 2010 13:00:51 GMT
javax.management.InstanceAlreadyExistsException when registrating an MBean
--------------------------------------------------------------------------

                 Key: AMQ-2819
                 URL: https://issues.apache.org/activemq/browse/AMQ-2819
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.3.2
         Environment: Debian x64
            Reporter: Christian Lang


Hi,

I'm using the latest ActiveMQ version in a test environment with about 100 msg / sec via stomp.
>From time to time, i receive the following warning in the logfile:

INFO   | jvm 1    | 2010/07/09 14:38:11 |  WARN | Failed to register MBean: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=stomp+nio,ViewType=address,Name=/XXXXXXXX

Furthermore, this mbean seems to hang as it always appears in the jetty "Connections" frontend
as "active connection".

After some debugging i found following exception in the logfile:

2010-07-09 13:20:58,036 | DEBUG | Setting up new connection id: ID:XXXXXXXX:1995214, address:
/XXXXXXXX:56801 | org.apache.activemq.broker.TransportConnection | ActiveMQ NIO Worker
2010-07-09 13:20:58,038 | DEBUG | localhost removing consumer: ID:XXXXXXXX:239638 for destination:
queue://myqueue | org.apache.activemq.broker.region.AbstractRegion | ActiveMQ Transport: tcp:///XXXXXXXX:54632
2010-07-09 13:20:58,038 | DEBUG | remove sub: QueueSubscription: consumer=ID:XXXXXXXX:1:239638,
destinations=1, dispatched=0, delivered=0, pending=0, lastDeliveredSeqId: 0, dequeues: 208844,
dispatched: 208883, inflight: 0 | org.apache.activemq.broker.region.Queue | ActiveMQ Transport:
tcp:///XXXXXXXX:54632
2010-07-09 13:20:58,038 | DEBUG | localhost adding consumer: ID:XXXXXXXX:239639 for destination:
queue://myqueue | org.apache.activemq.broker.region.AbstractRegion | ActiveMQ Transport: tcp:///XXXXXXXX:54632
2010-07-09 13:20:58,039 | DEBUG | Transport failed: java.io.IOException: Broken pipe | org.apache.activemq.broker.TransportConnection.Transport
| ActiveMQ NIO Worker
java.io.IOException: Broken pipe
 at sun.nio.ch.FileDispatcher.write0(Native Method)
 at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
 at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
 at sun.nio.ch.IOUtil.write(IOUtil.java:75)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
 at org.apache.activemq.transport.nio.NIOOutputStream.write(NIOOutputStream.java:174)
 at org.apache.activemq.transport.nio.NIOOutputStream.flush(NIOOutputStream.java:115)
 at java.io.DataOutputStream.flush(DataOutputStream.java:106)
 at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:168)
 at org.apache.activemq.transport.stomp.StompTransportFilter.sendToStomp(StompTransportFilter.java:92)
 at org.apache.activemq.transport.stomp.ProtocolConverter.sendToStomp(ProtocolConverter.java:139)
 at org.apache.activemq.transport.stomp.ProtocolConverter.handleException(ProtocolConverter.java:221)
 at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:195)
 at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:71)
 at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
 at org.apache.activemq.transport.stomp.StompNIOTransport.serviceRead(StompNIOTransport.java:122)
 at org.apache.activemq.transport.stomp.StompNIOTransport.access$000(StompNIOTransport.java:49)
 at org.apache.activemq.transport.stomp.StompNIOTransport$1.onSelect(StompNIOTransport.java:73)
 at org.apache.activemq.transport.nio.SelectorSelection.onSelect(SelectorSelection.java:94)
 at org.apache.activemq.transport.nio.SelectorWorker$1.run(SelectorWorker.java:119)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
2010-07-09 13:20:58,040 | DEBUG | Stopping connection: /XXXXXXXX:56801 | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task
2010-07-09 13:20:58,040 | DEBUG | Stopping transport tcp:///XXXXXXXX:56801 | org.apache.activemq.transport.tcp.TcpTransport
| ActiveMQ Task
2010-07-09 13:20:58,040 | DEBUG | Stopped transport: null | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task
2010-07-09 13:20:58,040 | DEBUG | Cleaning up connection resources: null | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task
2010-07-09 13:20:58,040 | DEBUG | remove connection id: ID:XXXXXXXX:1995214 | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task
2010-07-09 13:20:58,040 | DEBUG | Connection Stopped: null | org.apache.activemq.broker.TransportConnection
| ActiveMQ Task
2010-07-09 13:20:58,158 | WARN  | Failed to register MBean: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=stomp+nio,ViewType=address,Name=/XXXXXXXX_56802
| org.apache.activemq.broker.jmx.ManagedTransportConnection | ActiveMQ Task
2010-07-09 13:20:58,158 | DEBUG | Failure reason: javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=stomp+nio,ViewType=address,Name=/XXXXXXXX_56802
| org.apache.activemq.broker.jmx.ManagedTransportConnection | ActiveMQ Task
javax.management.InstanceAlreadyExistsException: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=stomp+nio,ViewType=address,Name=/XXXXXXXX_56802
 at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
 at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
 at org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:305)
 at org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:54)
 at org.apache.activemq.broker.jmx.ManagedTransportConnection.registerMBean(ManagedTransportConnection.java:99)
 at org.apache.activemq.broker.jmx.ManagedTransportConnection.<init>(ManagedTransportConnection.java:57)
 at org.apache.activemq.broker.jmx.ManagedTransportConnector.createConnection(ManagedTransportConnector.java:52)
 at org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:212)
 at java.lang.Thread.run(Thread.java:619)
2010-07-09 13:20:58,159 | DEBUG | Setting up new connection id: ID:XXXXXXXX:1995215, address:
/XXXXXXXX:56802 | org.apache.activemq.broker.TransportConnection | ActiveMQ NIO Worker

As you can see, the instance of this MBean seems to be already registered.

Any idea why this happens and how to fix?

Cheers,
Christian





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message