From users-return-27698-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Jun 1 11:18:59 2011
Return-Path:
X-Original-To: apmail-activemq-users-archive@www.apache.org
Delivered-To: apmail-activemq-users-archive@www.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id E2462695E
for ; Wed, 1 Jun 2011 11:18:59 +0000 (UTC)
Received: (qmail 34933 invoked by uid 500); 1 Jun 2011 11:18:59 -0000
Delivered-To: apmail-activemq-users-archive@activemq.apache.org
Received: (qmail 34896 invoked by uid 500); 1 Jun 2011 11:18:59 -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 34888 invoked by uid 99); 1 Jun 2011 11:18:59 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 11:18:59 +0000
X-ASF-Spam-Status: No, hits=2.0 required=5.0
tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX
X-Spam-Check-By: apache.org
Received-SPF: neutral (nike.apache.org: local policy)
Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 11:18:52 +0000
Received: from joe.nabble.com ([192.168.236.139])
by sam.nabble.com with esmtp (Exim 4.72)
(envelope-from )
id 1QRjRX-00037K-N0
for users@activemq.apache.org; Wed, 01 Jun 2011 04:18:31 -0700
Date: Wed, 1 Jun 2011 04:18:31 -0700 (PDT)
From: James Black
To: users@activemq.apache.org
Message-ID: <1306927111700-3565540.post@n4.nabble.com>
Subject: Transaction not started XA problems
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
Hello,
The situation is we want to use XA transactions for ActiveMQ and Hibernate
(Sql Server 2008).
We are using:
Spring 3.0.5
Hibernate 3.6.2
ActiveMQ 5.5.0
Atomikos 3.7
We are seeing the following errors getting generated in the log file related
to the transaction has not been started. These are always related to JMS.
Transaction '[ID]' has not been started.
These are getting generated into the logs all the time.
The issue is more complicated in that we have 3 web application that work
with the same JMS queues and the errors do not seem to be generated when
only a single web application is running.
These are deployed to separate instances of Tomcat 7.0.14 running on the
same machine.
When monitoring the web application throwing these errors using VisualVM the
application was creating 10 new threads per second. This was without any
activity through HTTP or on the ActiveMQ queues.
Stack trace:
011-05-31 15:04:27,065 [Atomikos:30] WARN -
[com.atomikos.diagnostics.Slf4jConsole] : XA resource 'XAJMS': rollback for
XID
'3139322E3136382E302E35332E746D30363636333030303031:3139322E3136382E302E35332E746D36363633'
raised 0: unknown
javax.transaction.xa.XAException: Transaction
'XID:1096044365:3139322e3136382e302e35332e746d30363636333030303031:3139322e3136382e302e35332e746d36363633'
has not been started.
at
org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:732)
at
org.apache.activemq.TransactionContext.rollback(TransactionContext.java:497)
at
com.atomikos.datasource.xa.XAResourceTransaction.rollback(XAResourceTransaction.java:690)
at com.atomikos.icatch.imp.RollbackMessage.send(RollbackMessage.java:72)
at
com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:111)
at
com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:87)
at
com.atomikos.icatch.imp.Propagator.submitPropagationMessage(Propagator.java:66)
at
com.atomikos.icatch.imp.HeurHazardStateHandler.onTimeout(HeurHazardStateHandler.java:124)
at com.atomikos.icatch.imp.CoordinatorImp.alarm(CoordinatorImp.java:1105)
at
com.atomikos.timing.PooledAlarmTimer.notifyListeners(PooledAlarmTimer.java:112)
at com.atomikos.timing.PooledAlarmTimer.run(PooledAlarmTimer.java:99)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.transaction.xa.XAException: Transaction
'XID:1096044365:3139322e3136382e302e35332e746d30363636333030303031:3139322e3136382e302e35332e746d36363633'
has not been started.
at
org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:290)
at
org.apache.activemq.broker.TransactionBroker.rollbackTransaction(TransactionBroker.java:177)
at
org.apache.activemq.broker.MutableBrokerFilter.rollbackTransaction(MutableBrokerFilter.java:131)
at
org.apache.activemq.broker.TransportConnection.processRollbackTransaction(TransportConnection.java:436)
at
org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:104)
at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:227)
at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220)
at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
at java.lang.Thread.run(Unknown Source)
Our Spring configuration:
JNDI Connection Factory for ActiveMQ
Any help much appreciated?
James
--
View this message in context: http://activemq.2283324.n4.nabble.com/Transaction-not-started-XA-problems-tp3565540p3565540.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.