activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <os...@pernas.es>
Subject Failure reason: javax.management.InstanceAlreadyExistsException 5.5.1
Date Mon, 08 Oct 2012 07:55:59 GMT
Hi all,

I've durable consumers connected to activemq 5.5.1. Sometimes, these
durable consumers were disconnected and could connect again. In
activemq debug log I can see this traces:

Setting up new connection id: ID:V1222-1044-1349553778453-0:1,
address: /10.4.23.22:1050 |
org.apache.activemq.broker.TransportConnection | ActiveMQ Transport:
tcp:///10.4.23.22:1050
2012-10-06 15:03:22,875 | WARN  | Failed to register MBean:
org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=openwire,Connection=consumer1_V1222
| org.apache.activemq.broker.jmx.ManagedTransportConnection | ActiveMQ
Transport: tcp:///10.4.23.22:1050
2012-10-06 15:03:22,875 | DEBUG | Failure reason:
javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=openwire,Connection=consumer1_V1222
| org.apache.activemq.broker.jmx.ManagedTransportConnection | ActiveMQ
Transport: tcp:///10.4.23.22:1050
javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=openwire,Connection=consumer1_V1222
	at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown
Source)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown
Source)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown
Source)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown
Source)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
	at org.apache.activemq.broker.jmx.ManagementContext.registerMBean(ManagementContext.java:299)
	at org.apache.activemq.broker.jmx.AnnotatedMBean.registerMBean(AnnotatedMBean.java:65)
	at org.apache.activemq.broker.jmx.ManagedTransportConnection.registerMBean(ManagedTransportConnection.java:99)
	at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:88)
	at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:137)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
	at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
	at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
	at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
	at java.lang.Thread.run(Unknown Source)
2012-10-06 15:03:22,906 | DEBUG | Error occured while processing sync
command: ConsumerInfo {commandId = 3, responseRequired = true,
consumerId = ID:V1222-1044-1349553778453-0:1:0:0, destination =
topic://BAJADA_SALDOS_VIADUCTO, prefetchSize = 100,
maximumPendingMessageLimit = 0, browser = false, dispatchAsync = true,
selector = null, subscriptionName = consumer1_V1222, noLocal = false,
exclusive = false, retroactive = false, priority = 0, brokerPath =
null, optimizedAcknowledge = false, noRangeAcks = false,
additionalPredicate = null}, exception: javax.jms.JMSException:
Durable consumer is in use for client: consumer1_V1222 and
subscriptionName: consumer1_V1222 |
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ
Transport: tcp:///10.4.23.22:1050
javax.jms.JMSException: Durable consumer is in use for client:
consumer1_V1222 and subscriptionName: consumer1_V1222
	at org.apache.activemq.broker.region.TopicRegion.addConsumer(TopicRegion.java:74)
	at org.apache.activemq.broker.region.RegionBroker.addConsumer(RegionBroker.java:450)
	at org.apache.activemq.broker.jmx.ManagedRegionBroker.addConsumer(ManagedRegionBroker.java:240)
	at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
	at org.apache.activemq.advisory.AdvisoryBroker.addConsumer(AdvisoryBroker.java:79)
	at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
	at org.apache.activemq.broker.BrokerFilter.addConsumer(BrokerFilter.java:89)
	at org.apache.activemq.broker.MutableBrokerFilter.addConsumer(MutableBrokerFilter.java:95)
	at org.apache.activemq.broker.TransportConnection.processAddConsumer(TransportConnection.java:546)
	at org.apache.activemq.command.ConsumerInfo.visit(ConsumerInfo.java:349)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
	at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
	at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
	at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
	at java.lang.Thread.run(Unknown Source)
2012-10-06 15:03:22,906 | DEBUG | Error occured while processing async
command: RemoveInfo {commandId = 4, responseRequired = false, objectId
= ID:V1222-1044-1349553778453-0:1:0:0, lastDeliveredSequenceId = -1},
exception: java.lang.IllegalStateException: Cannot remove a consumer
that had not been registered: ID:V1222-1044-1349553778453-0:1:0:0 |
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ
Transport: tcp:///10.4.23.22:1050
java.lang.IllegalStateException: Cannot remove a consumer that had not
been registered: ID:V1222-1044-1349553778453-0:1:0:0
	at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:571)
	at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:76)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
	at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
	at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
	at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
	at java.lang.Thread.run(Unknown Source)
2012-10-06 15:03:22,906 | WARN  | Async error occurred:
java.lang.IllegalStateException: Cannot remove a consumer that had not
been registered: ID:V1222-1044-1349553778453-0:1:0:0 |
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ
Transport: tcp:///10.4.23.22:1050
java.lang.IllegalStateException: Cannot remove a consumer that had not
been registered: ID:V1222-1044-1349553778453-0:1:0:0
	at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:571)
	at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:76)
	at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
	at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
	at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
	at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
	at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227)
	at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
	at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220)
	at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
	at java.lang.Thread.run(Unknown Source)

I cant remove the durable suscriber, and finally we need to restart
the broker. Have I have to set any option like soTimeout in connection
string?


Regards

-- 
Óscar Pernas Plaza.

Mime
View raw message