activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neo Wang <wangdong...@hotmail.com>
Subject Re: Transaction has not been started .. JBoss 5.1.0 GA and ActiveMQ 5.2.0
Date Wed, 02 Sep 2009 09:14:22 GMT

Have you commented the "<interceptor transaction="Container"
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>"
in jboss.xml?



Seyfula I. Seyfula wrote:
> 
> Environment: ActiveMQ 5.2, JBoss 5.1GA
> 
> Hello
> 
> I have problem trying to send messages from EJB 3.0 bean from JBoss to
> ActiveMQ. I receive the following error: Transaction 'XID:transaction_id'
> has not been started.  I use stateful session bean for sending messages.
> Connection is closed every time when new message needs to be send to
> destination and then closed. Used resource adapter version is
> activemq-rar-5.2.0.rar. Is this ActiveMQ broker or JBoss configuration
> problem and how can I solve it? Hope someone could help me!!!
> 
> Stack trace:
> 
> 16:57:43,765 WARN  [TxConnectionManager] Connection error occured:
> org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@b39bc1[state=NORMAL
> mc=org.apache.activemq.ra.ActiveMQManagedConnection@6635b handles=1
> lastUse=1251727063437 permit=true trackByTx=false
> mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubjectAndCri@961fb0
> context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@128027c
> xaResource=org.apache.activemq.ra.ActiveMQManagedConnection$1@1b6d9cf
> txSync=null]
> javax.jms.JMSException: Transaction
> 'XID:131075:312d31343264376534343a6436393a34613962643063623a31616337:31343264376534343a6436393a34613962643063623a31616338'
> 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:886)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: javax.transaction.xa.XAException: Transaction
> 'XID:131075:312d31343264376534343a6436393a34613962643063623a31616337:31343264376534343a6436393a34613962643063623a31616338'
> 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(Unknown Source)
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Transaction-has-not-been-started-..-JBoss-5.1.0-GA-and-ActiveMQ-5.2.0-tp25224556p25254184.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message