From users-return-23134-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Apr 06 09:44:42 2010 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 50621 invoked from network); 6 Apr 2010 09:44:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 09:44:42 -0000 Received: (qmail 28712 invoked by uid 500); 6 Apr 2010 09:44:41 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 28571 invoked by uid 500); 6 Apr 2010 09:44:39 -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 28562 invoked by uid 99); 6 Apr 2010 09:44:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 09:44:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajika@wso2.com designates 74.125.92.150 as permitted sender) Received: from [74.125.92.150] (HELO qw-out-1920.google.com) (74.125.92.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 09:44:32 +0000 Received: by qw-out-1920.google.com with SMTP id 9so1701749qwj.26 for ; Tue, 06 Apr 2010 02:44:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.190.133 with HTTP; Tue, 6 Apr 2010 02:44:11 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Apr 2010 15:14:11 +0530 Received: by 10.229.212.146 with SMTP id gs18mr3413491qcb.90.1270547051837; Tue, 06 Apr 2010 02:44:11 -0700 (PDT) Message-ID: Subject: Re: javax.jms.JMSException: Transaction 'tx-id' has not been started error while using the broker From: Rajika Kumarasiri To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001636284332b1f7e204838e499a X-Virus-Checked: Checked by ClamAV on apache.org --001636284332b1f7e204838e499a Content-Type: text/plain; charset=ISO-8859-1 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/ --001636284332b1f7e204838e499a--