3 Replies Latest reply on Feb 25, 2002 4:09 PM by aldus

    Application Error: tried to enter Stateful bean with differ

    sater78

      I am writing a small application which access a stateful sessionbean deployed in JBoss. The bean has a login method which stores the userId in a private Integer in the bean. Another method, checkMessages() uses that userId to request messages from an other bean. This works nicely, but after the checkMessages have been run, all other methods i the sessionbean throws this exception:

      [ClientCoordinatorBean] 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
      [ClientCoordinatorBean] java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different transaction context
      [ClientCoordinatorBean] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:207)
      [ClientCoordinatorBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)