Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 87268 invoked from network); 1 Sep 2009 18:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 18:56:23 -0000 Received: (qmail 24123 invoked by uid 500); 1 Sep 2009 18:56:22 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24065 invoked by uid 500); 1 Sep 2009 18:56:22 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 24048 invoked by uid 99); 1 Sep 2009 18:56:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 18:56:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 18:56:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MiYWH-0007jB-16 for users@activemq.apache.org; Tue, 01 Sep 2009 11:55:53 -0700 Message-ID: <25244281.post@talk.nabble.com> Date: Tue, 1 Sep 2009 11:55:52 -0700 (PDT) From: sevzas To: users@activemq.apache.org Subject: InvalidClientIDException due to Phantom connection? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sevzas@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org 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.