2 Replies Latest reply on Nov 1, 2001 9:44 AM by MN

    Application Error: Stateful Bean / Different Transaction Con

    MN Newbie

      Hello,

      I got the following JBoss 2.2.1 error when I try to invoke a stateful session bean for the second time:

      [Ticketing] Application Error: tried to enter Stateful bean with different transaction context
      [Ticketing] java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different transaction context
      [Ticketing] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:172)
      [Ticketing] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [Ticketing] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:226)
      [Ticketing] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Ticketing] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Ticketing] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:326)
      [Ticketing] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke (JRMPContainerInvoker.java:392)
      [Ticketing] at java.lang.reflect.Method.invoke(Native Method)
      [Ticketing] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      [Ticketing] at sun.rmi.transport.Transport$1.run(Transport.java:142)
      [Ticketing] at java.security.AccessController.doPrivileged(Native Method)
      [Ticketing] at sun.rmi.transport.Transport.serviceCall(Transport.java:139)
      [Ticketing] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
      [Ticketing] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
      [Ticketing] at java.lang.Thread.run(Thread.java:484)

      The bean method called here has a transaction attribute of NotSupported and manages it's own transactions via an UserTransaction object obtained from the session context.

      Does anybody know what this error message means and what I am doing wrong here ?

      thanks in advance