Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 72280 invoked from network); 3 Nov 2008 15:49:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2008 15:49:27 -0000 Received: (qmail 59192 invoked by uid 500); 3 Nov 2008 15:49:33 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 59171 invoked by uid 500); 3 Nov 2008 15:49:33 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 59121 invoked by uid 99); 3 Nov 2008 15:49:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 07:49:33 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 15:48:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58972234C262 for ; Mon, 3 Nov 2008 07:49:06 -0800 (PST) Message-ID: <920001585.1225727346361.JavaMail.jira@brutus> Date: Mon, 3 Nov 2008 07:49:06 -0800 (PST) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1990) Failing network connectors randomly log SEVERE message : Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command In-Reply-To: <1973366592.1225329232637.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47023#action_47023 ] Gary Tully commented on AMQ-1990: --------------------------------- Justin, I put this test in a loop and ran 20 times against trunk but did not see the error message. Have you verified with trunk or a 5.3-SNAPSHOT? thanks > Failing network connectors randomly log SEVERE message : Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command > ------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-1990 > URL: https://issues.apache.org/activemq/browse/AMQ-1990 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.1.0 > Environment: Linux, Windows XP, Mac OSX 10.5.1 > Reporter: Justin Pitts > Attachments: CouldNotAcceptConnection.java > > > I have an application which embeds the broker service. A common deployment scenario is a sometimes-connected network of these applications. Unfortunately, I don't have many situations where I can use discovery, so the network connectors are static configurations. Randomly, when these network connections are unable to connect, I see the following exception trace: > 30 Sep 2008 18:36:18 ERROR [ActiveMQ Transport Initiator: vm://instance-2#2] (TransportConnector.java:234) - Could not accept connection : java.lang.Object cannot be cast to org.apache.activemq.command.Command > These errors seem like they might be the result of a race condition during start or stop of a network connector. I will attach a sample application which demonstrates the problem. You may have to run the application a couple times to provoke it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.