Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 24775 invoked from network); 26 Oct 2007 13:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2007 13:24:16 -0000 Received: (qmail 47870 invoked by uid 500); 26 Oct 2007 13:24:01 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 47821 invoked by uid 500); 26 Oct 2007 13:24:01 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 47809 invoked by uid 99); 26 Oct 2007 13:24:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 06:24:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2007 13:24:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D80BE71424F for ; Fri, 26 Oct 2007 06:23:50 -0700 (PDT) Message-ID: <12780371.1193405030882.JavaMail.jira@brutus> Date: Fri, 26 Oct 2007 06:23:50 -0700 (PDT) From: "anish pathadan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-2880) TransportDisposedIOException occurs when trying to close ActiveMQ queue In-Reply-To: <5686672.1172252285508.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/jira/browse/GERONIMO-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537956 ] anish pathadan commented on GERONIMO-2880: ------------------------------------------ Hi All, The issue is due to geronimo using XA datasource (SystemDatasource) for activemq persistence. I have discussed this issue in activemq forum and I got the recommendation to use a non XA datasource for activemq persistence. The reason is activemq itself is managing the transaction for broker persistence and it doesn't make sense to use XA datasource as there is no other Transaction Manager involved in it. I have modified the activemq-broker plan to use NoTxDatasource and I got the issue resolved.I am attaching a patch also.I verified the issue in AG 2.0.1 release. Thanks, Anish Pathadan > TransportDisposedIOException occurs when trying to close ActiveMQ queue > ----------------------------------------------------------------------- > > Key: GERONIMO-2880 > URL: https://issues.apache.org/jira/browse/GERONIMO-2880 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: ActiveMQ > Affects Versions: 2.0.x > Environment: Windows XP SP2 > Reporter: Aman Nanner > Priority: Critical > Fix For: 2.0.x, 2.1 > > > I have discovered some problems with queues while running unittest in our own J2EE app. > After sending a message on a queue, when we try to call the close() method on the queue, we get the following exception: > ---- > org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#69) disposed. > ---- > where the number after "localhost" is different every time. > We do not experience this problem with topics. We are using ActiveMQ as part of an "embedded" configuration with Geronimo. > I've done some debugging and the problem occurs at this line in the ActiveMQMessageProducer.close() method: > ---- > this.session.asyncSendPacket(info.createRemoveCommand()); > ---- > The queue itself is disposed properly in the dispose() method that is called in the line before, but this sending of the asynchronous packet fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.