Environment: JDK1.5, JBoss 5.1.0GA, ActiveMQ 5.2.0(Embedded broker in JBoss)
My test program is very simple, a MDB is deployed in JBoss to receive a
message from the queue, and send the message to a topic after receiving it.
I followed all of the configuration steps in apache
website[http://activemq.apache.org/inbound-communication.html], but I get an
error message like "remote jndi name is not defined..." and EJB can't be
deployed, so I common the "org.jboss.ejb.plugins.MetricsInterceptor"
in jboss.xml, the deployment is successful, but I don't know why. Then I
begin to the test, but when the MDB receives a message from the input queue,
the following exception is happen:
18:02:22,873 ERROR [Service] Async error occurred:
javax.transaction.xa.XAException: Transaction
'XID:131075:312d613061383764343a323430393a34613965343164613a3638:613061383764343a323430393a34613965343164613a3639'
has not been started.
javax.transaction.xa.XAException: Transaction
'XID:131075:312d613061383764343a323430393a34613965343164613a3638:613061383764343a323430393a34613965343164613a3639'
has not been started.
at
org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:266)
at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:208)
at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:126)
at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:95)
at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:133)
at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:450)
at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:639)
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:595)
18:02:22,885 WARN [ActiveMQManagedConnection] Connection failed:
javax.jms.JMSException: Transaction
'XID:131075:312d613061383764343a323430393a34613965343164613a3638:613061383764343a323430393a34613965343164613a3639'
has not been started.
18:02:22,887 WARN [TxConnectionManager] Connection error occured:
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1b373bf[state=NORMAL
mc=org.apache.activemq.ra.ActiveMQManagedConnection@311366 handles=2
lastUse=1251885742706 permit=true trackByTx=false
mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1f0ad70
context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@a9822
xaResource=org.apache.activemq.ra.ActiveMQManagedConnection$1@742b87
txSync=null]
javax.jms.JMSException: Transaction
'XID:131075:312d613061383764343a323430393a34613965343164613a3638:613061383764343a323430393a34613965343164613a3639'
has not been started.
at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
at
org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1773)
at
org.apache.activemq.ActiveMQConnection$2$1.run(ActiveMQConnection.java:1694)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.transaction.xa.XAException: Transaction
'XID:131075:312d613061383764343a323430393a34613965343164613a3638:613061383764343a323430393a34613965343164613a3639'
has not been started.
at
org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:266)
at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:208)
at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:126)
at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:95)
at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:133)
at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:450)
at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:639)
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)
----------------------------------------------------------------------------------------------------
I am confused about it, is it a bug of new version of ActiveMQ? How can
resolve it? Thanks a lot.
--
View this message in context: http://www.nabble.com/javax.transaction.xa.XAException%3A-Transaction-%27XID%3A***%27-has-not-been-started.-tp25254872p25254872.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.