Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 71110 invoked from network); 17 Oct 2007 09:58:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2007 09:58:00 -0000 Received: (qmail 52304 invoked by uid 500); 17 Oct 2007 09:55:04 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 52281 invoked by uid 500); 17 Oct 2007 09:55:04 -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 52271 invoked by uid 99); 17 Oct 2007 09:55:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 02:55:04 -0700 X-ASF-Spam-Status: No, hits=-3.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ecr231@tid.es designates 193.145.240.2 as permitted sender) Received: from [193.145.240.2] (HELO correo.tid.es) (193.145.240.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 09:55:04 +0000 Received: from tid (filvit [192.168.48.202]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JQ1000POVCY79@tid.hi.inet> for users@activemq.apache.org; Wed, 17 Oct 2007 11:50:58 +0200 (MEST) Received: from [10.95.10.73] (PT-0020.hi.inet [10.95.10.73]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPSA id <0JQ1000PDVCW79@tid.hi.inet> for users@activemq.apache.org; Wed, 17 Oct 2007 11:50:58 +0200 (MEST) Date: Wed, 17 Oct 2007 11:51:24 +0200 From: Eduardo Corral Subject: 'transaction has not been started' with transacted consumers Sender: ecr231@tid.es To: users@activemq.apache.org Message-id: <4715DB1C.1000808@tid.es> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone We are having a similar problem to this one: http://www.nabble.com/JMSException-Transaction-*-has-not-been-started-t1563748.html#a4246798 using ActiveMQ 4.1.1 Broker (right now we cannot use 5.0 in our production environment). Basically, we have some consumers using transactions (consume/commit), and we cannot use CLIENT_ACKNOWLEDGE). When forcing a slow DB access when consuming messages, we finally get the same error on all consumers: [DEBUG][2007/10/17.11:01:05.960][ActiveMQ Transport: tcp:///127.0.0.1:37264]Async error occurred: javax.jms.JMSException: Transaction 'TX:ID:sombra-37249-1192611298747-0:0:4842' has not been started.(Transaction 'TX:ID:sombra-37249-1192611298747-0:0:4842' has not been started.) Full stack: Oct 17, 2007 11:01:06 AM org.apache.activemq.ActiveMQConnection onAsyncException WARNING: Async exception with no exception listener: javax.jms.JMSException: Transaction 'TX:ID:sombra-37249-1192611298747-0:0:4847' has not been started. javax.jms.JMSException: Transaction 'TX:ID:sombra-37249-1192611298747-0:0:4847' has not been started. at org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:230) at org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:173) 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:88) at org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:506) at org.apache.activemq.command.MessageAck.visit(MessageAck.java:179) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:127) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137) at java.lang.Thread.run(Unknown Source) So, to make long story short: we need transacted consumers, with (ocasionally) slow DB access (no journal possible), and we need to avoid this exception. Does anyone know how to avoid it? Thank you in advance and best regards Eduardo