Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 6802 invoked from network); 6 Apr 2010 13:22:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 13:22:38 -0000 Received: (qmail 35461 invoked by uid 500); 6 Apr 2010 13:22:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 35437 invoked by uid 500); 6 Apr 2010 13:22:37 -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 35429 invoked by uid 99); 6 Apr 2010 13:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 13:22:37 +0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.218.223 as permitted sender) Received: from [209.85.218.223] (HELO mail-bw0-f223.google.com) (209.85.218.223) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 13:22:33 +0000 Received: by bwz23 with SMTP id 23so1827129bwz.6 for ; Tue, 06 Apr 2010 06:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=HU6+NCzGGj9ye8GczTZGtHH6a++9+4ATEjrP8BKkh4w=; b=mSKMgAXYtOk/2qR+D4Zf2d5syjO5Bwr0wJofea1n1OjYS6HgmKU6rcnVz7+hJ2L8sR PbXNc4uTiqc5herUW2Ffmc800uoF0HeyHbjo2N56fD1JeJnm5yJBzXs5jv2+2DzjiSlj uvJUx3rWv26oGlw4JHnOVl2HhqxNdthjfgtfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=oMTpqcsCYlGhkcYgU3GbS89z9xzb8BJwA+muJKdCwIlxgwJZq7r2jORdJnnpgZB+pP C1eZwHkTcmSALkk6hCsVz1KuxcYTKJGoh2ycaqxWcKYJYlsyS+n1AHKg5TgkHRcZWlH7 722tTT58osNTDoZZF7OfsKuK+zGCa8qIT+Ovc= MIME-Version: 1.0 Received: by 10.204.65.79 with HTTP; Tue, 6 Apr 2010 06:22:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Apr 2010 14:22:10 +0100 Received: by 10.204.45.201 with SMTP id g9mr8046276bkf.89.1270560131035; Tue, 06 Apr 2010 06:22:11 -0700 (PDT) Message-ID: Subject: Re: javax.jms.JMSException: Transaction 'tx-id' has not been started error while using the broker From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=0016e6d9785646b4070483915534 --0016e6d9785646b4070483915534 Content-Type: text/plain; charset=ISO-8859-1 can you open a jira issue and attach your test case or something that can reproduce in junit? It looks like there is an outstanding rogue ack on the client side that is being ignored by the server, but all client side context should be removed on a rollback. A junit test case is the best way to help reproduce and diagnose. On 6 April 2010 13:58, Rajika Kumarasiri wrote: > I tested with 5.1.3 but end up with the same result. Anybody has any clue? > > Thanks, > Rajika > > On Tue, Apr 6, 2010 at 3:14 PM, Rajika Kumarasiri wrote: > > > Thanks Gary. I'll give a try and let you know. > > > > Rajika > > > > > > On Tue, Apr 6, 2010 at 3:05 PM, Gary Tully wrote: > > > >> There has been a lot of work in this area, I would advise upgrading to > >> version 5.3.1 > >> > >> On 6 April 2010 10:18, Rajika Kumarasiri wrote: > >> > >> > hi, > >> > I am using the activemq broker 5.2 ( on Fedora 11) as the JMS > provider. > >> > Using a JMS consumer I am connecting to this broker. The client uses > JMS > >> > transacted session. I am getting the following exception and the stack > >> > trace[1] when client tries to call session.rollback(). It works fine > >> when > >> > calling commit on the session ( session.commit()) . Do you have any > idea > >> > how > >> > to fix this? Do you want more information? ( I tried search for > solution > >> > but > >> > couldn't find any useful information). > >> > Thanks in advance. > >> > Rajika > >> > > >> > [1] > >> > > >> > ERROR Service - Async error occurred: > >> > javax.jms.JMSException: Transaction > >> > 'TX:ID:localhost-55886-1270542729317-0:2:1' has not been started. > >> > javax.jms.JMSException: Transaction > >> > 'TX:ID:localhost-55886-1270542729317-0:2:1' has not been started. > >> > at > >> > > >> > > >> > org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:270) > >> > at > >> > > >> > > >> > org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:190) > >> > at > >> > > >> > org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) > >> > at > >> > > >> > org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) > >> > at > >> > > >> > > >> > org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:85) > >> > at > >> > > >> > > >> > org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:456) > >> > at > org.apache.activemq.command.MessageAck.visit(MessageAck.java:205) > >> > 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(Thread.java:619) > >> > > >> > > >> > -- > >> > http://rajikak.blogspot.com/ > >> > > >> > >> > >> > >> -- > >> http://blog.garytully.com > >> > >> Open Source Integration > >> http://fusesource.com > >> > > > > > > > > -- > > http://rajikak.blogspot.com/ > > > > > > -- > http://rajikak.blogspot.com/ > -- http://blog.garytully.com Open Source Integration http://fusesource.com --0016e6d9785646b4070483915534--