Bugs item #425847, was opened at 2001-05-21 10:43 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=425847&group_id=22866
Category: JBossServer Group: v2.2.1 (stable) Status: Closed Resolution: None Priority: 5 Submitted By: Tim McCune (javajedi) Assigned to: Nobody/Anonymous (nobody) Summary: Stateful session bean problem Initial Comment: When trying to call a method on a stateful session bean, I sometimes get the following exception: TRANSACTION ROLLBACK EXCEPTION: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 transaction context java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different transaction context at org.jboss.ejb.plugins.StatefulSessionInstanceIntercepto r.invoke(StatefulSessionInstanceInterceptor.java:172) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext (TxInterceptorCMT.java:133) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti ons(TxInterceptorCMT.java:263) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke (TxInterceptorCMT.java:99) at org.jboss.ejb.plugins.LogInterceptor.invoke (LogInterceptor.java:195) at org.jboss.ejb.StatefulSessionContainer.invoke (StatefulSessionContainer.java:326) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker. invoke(JRMPContainerInvoker.java:392) at java.lang.reflect.Method.invoke(Native Method) at sun.rmi.server.UnicastServerRef.dispatch (UnicastServerRef.java:241) at sun.rmi.transport.Transport$1.run (Transport.java:142) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall (Transport.java:139) at sun.rmi.transport.tcp.TCPTransport.handleMessages (TCPTransport.java:443) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru n(TCPTransport.java:643) at java.lang.Thread.run(Thread.java:484) ---------------------------------------------------------------------- Comment By: Jakub Mendys (jmendys) Date: 2002-08-28 14:04 Message: Logged In: YES user_id=602025 I also got this exception as described by nobody on 2001-08- 23 06:44. Is there any way to avoid this ? ---------------------------------------------------------------------- Comment By: Tim McCune (javajedi) Date: 2001-08-23 19:26 Message: Logged In: YES user_id=62441 I figured out that this is caused by accessing a stateful session bean from separate threads, which is apparently simply not allowed by JBoss. I don't know whether the spec intends it to be possible or not. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-08-23 06:44 Message: Logged In: NO I also noticed this Exception. It seems to happen when a HTTP request is interrupted by pressing "Stop" while an EJB is doing something. When "reloading" the page and executing the same operation again I see an exception showing that the serialized file cannot be found. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=425847&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
