activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevzas <sev...@gmail.com>
Subject InvalidClientIDException due to Phantom connection?
Date Tue, 01 Sep 2009 18:55:52 GMT

Hi,

I'm using ActiveMQ 5.2 on java 1.6.0_13.  The clients are .net clients using
NMS from Spring.Net-1.2.0.  Server and Client are running on separate
Windows XP SP3 machines.

Overall, things run well nearly all of the time.  Once in a while, a client
might go down unexpectedly for an unrelated reason and when I restart the
client, I get the exception at the bottom in the ActiveMQ log.  The client
shows a corresponding exception.

The client information (id, host and port) displayed on the exception is
accurate, except the client is no longer running.  I have checked for the
process on the client's machine and for the connections on both the client
and the server machine and they are not visible.

So it appears ActiveMQ has a phantom connection.  Couple questions:

1. Is this a known bug?  Is there a fix?
2. Is there a way to ask ActiveMQ for a list of what it thinks are the
active connections?
3. Is there a way to force ActiveMQ to drop a connection without restarting
the entire process?

Thanks in advance

-Sev

2009-09-01 12:45:10,474 [68.108.185:1826] WARN  TransportConnection           
- Failed to add Connection
javax.jms.InvalidClientIDException: Broker: localhost - Client:
SOME_CLIENT_NAME already connected from /192.168.108.184:1107
        at
org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBroker.java:209)
        at
org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:82)
        at
org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:82)
        at
org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBroker.java:75)
        at
org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:82)
        at
org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89)
        at
org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:679)
        at
org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:86)
        at
org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
        at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185)
        at java.lang.Thread.run(Unknown Source)
-- 
View this message in context: http://www.nabble.com/InvalidClientIDException-due-to-Phantom-connection--tp25244281p25244281.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message