Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 21572 invoked from network); 23 Jul 2009 14:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jul 2009 14:27:53 -0000 Received: (qmail 40404 invoked by uid 500); 23 Jul 2009 14:28:58 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 40359 invoked by uid 500); 23 Jul 2009 14:28:58 -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 40349 invoked by uid 99); 23 Jul 2009 14:28:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2009 14:28:58 +0000 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; Thu, 23 Jul 2009 14:28:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8C32234C045 for ; Thu, 23 Jul 2009 07:28:33 -0700 (PDT) Message-ID: <1534880068.1248359313821.JavaMail.jira@brutus> Date: Thu, 23 Jul 2009 07:28:33 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQCPP-256) Transaction has not been started exceptions on the broker with parallel transacted sessions In-Reply-To: <1222098965.1248195514431.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish updated AMQCPP-256: -------------------------------- Fix Version/s: 3.1 > Transaction has not been started exceptions on the broker with parallel transacted sessions > ------------------------------------------------------------------------------------------- > > Key: AMQCPP-256 > URL: https://issues.apache.org/activemq/browse/AMQCPP-256 > Project: ActiveMQ C++ Client > Issue Type: Bug > Affects Versions: 3.0 > Environment: Ubuntu Jaunty 9.04 > Reporter: Teemu Torma > Assignee: Timothy Bish > Priority: Critical > Fix For: 3.1 > > Attachments: mt-receive.cpp > > > When using parallel transacted sessions and consumers to same queue each sharing the same connection, the messages are delivered but the broker 5.2 gets exceptions > javax.jms.JMSException: Transaction 'TX:de411476-d65d-fff7-1e84-be7c9abd80b5:6' has not been started. > and some messages are left on the broker even though they were delivered. > The issue seems to be related to multi-threading, by protecting each receive/commit with a lock the error does not happen. I am sorry I don't have a test program ready, but it should be easy to reproduce by creating multiple transacted session threads with prefetchSize=1 and consuming messages, commiting after each message. I have seen this happen both with consumers and listeners. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.