Does anyone know what could cause this exception ?
It happens when I do sessionContext.setRollbackOnly();
in my stateful session bean. In the same method SFSB called
SLSB.
SFSB has Required, SLSB has Mandatory TX attribute on all methods.
Maris
[ERROR,DataAccess] TRANSACTION ROLLBACK EXCEPTION:
javax.transaction.TransactionRolledbackException: Application Error: tried to enter Stateful bean with different transaction context; nested exception is:
java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different tra
nsaction context
java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different transaction context
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(Compiled Code)@f850ba0
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(Compiled Code)@f659720
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Compiled Code)@f6572a0
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(Compiled Code)@f850b10
at org.jboss.ejb.plugins.LogInterceptor.invoke(Compiled Code)@f850780
at org.jboss.ejb.StatefulSessionContainer.invoke(Compiled Code)@f850730
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(Compiled Code)@f850540
at java.lang.reflect.Method.invoke(Native Method)@d6f5c3e
at sun.rmi.server.UnicastServerRef.dispatch(Compiled Code)@f6e0fb0
at sun.rmi.transport.Transport$1.run(Compiled Code)@f6e0e30
at java.security.AccessController.doPrivileged(Native Method)@d1f436c
at sun.rmi.transport.Transport.serviceCall(Compiled Code)@f6e0700
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Compiled Code)@f42f890
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Compiled Code)@f42eb50
at java.lang.Thread.run(Compiled Code)@d133880
at java.lang.Thread.startThreadFromVM(Compiled Code)@d133720
--- End of stack trace