geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <>
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...
// do something in MDB...
// 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
	at org.apache.geronimo.transaction.manager.TransactionImpl$TransactionBranch.getResourceName(
	at org.apache.geronimo.transaction.log.HOWLLog.prepare(
	at org.apache.geronimo.transaction.manager.TransactionImpl.internalPrepare(
	at org.apache.geronimo.transaction.manager.TransactionImpl.commit(
	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(
	at org.apache.openejb.core.transaction.TransactionPolicy.commitTransaction(
	at org.apache.openejb.core.transaction.TxRequired.afterInvoke(
	at org.apache.openejb.core.mdb.MdbContainer.afterDelivery(
	at org.apache.openejb.core.mdb.EndpointHandler.afterDelivery(
	at org.apache.openejb.core.mdb.EndpointHandler.invoke(
	at $Proxy70.afterDelivery(Unknown Source)
	at org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(
	at org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(
	at org.apache.activemq.ra.ServerSessionImpl.afterDelivery(
	at org.apache.geronimo.pool.ThreadPool$
	at org.apache.geronimo.pool.ThreadPool$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

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
View raw message