geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <lukasz.bud...@gmail.com>
Subject MDB afterDelivery and LocalAndXATransaction exception
Date Sun, 09 Mar 2008 08:36:41 GMT
Hi All!

I'm using G2.1.
I have simple MDB that invokes a session bean, session bean uses an
entity manager.

The stub looks like this:

public void onMessage(Message message) {

// do something in MDB...
someOtherBean.doSth();
// do something in MDB...
someOtherBean.doSthElse();
// do something in MDB...

}

All merge/persist operation inside someOtherBean are executed - I can
see the results in database, no exception is thrown, but when
onMessage method returns I get this error:

18:32:31,015 ERROR [Transaction] Please correct the integration and
supply a NamedXAResource
java.lang.IllegalStateException: Cannot log transactions as
org.apache.activemq.ra.LocalAndXATransaction@133155f is not a
NamedXAResource.
	at org.apache.geronimo.transaction.manager.TransactionImpl$TransactionBranch.getResourceName(TransactionImpl.java:697)
	at org.apache.geronimo.transaction.log.HOWLLog.prepare(HOWLLog.java:254)
	at org.apache.geronimo.transaction.manager.TransactionImpl.internalPrepare(TransactionImpl.java:444)
	at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:316)
	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245)
	at org.apache.openejb.core.transaction.TransactionPolicy.commitTransaction(TransactionPolicy.java:141)
	at org.apache.openejb.core.transaction.TxRequired.afterInvoke(TxRequired.java:75)
	at org.apache.openejb.core.mdb.MdbContainer.afterDelivery(MdbContainer.java:388)
	at org.apache.openejb.core.mdb.EndpointHandler.afterDelivery(EndpointHandler.java:274)
	at org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:164)
	at $Proxy70.afterDelivery(Unknown Source)
	at org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:126)
	at org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:65)
	at org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:216)
	at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:751)
	at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:165)
	at org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)
	at org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
	at java.lang.Thread.run(Thread.java:619)


What's about the "Please correct the integration and supply a NamedXAResource"?

Well, since everything works this is not quite serious but I does look
bad in my logs ;)

any idea what might cause above error and how can I fix it?

thanks in advance

best regards
Łukasz
Mime
View raw message