0 Replies Latest reply on Mar 13, 2002 10:48 AM by Mikael HOUDU

    Troubles with StatefulSessionBean

    Mikael HOUDU Newbie

      Hi,

      I work with JBoss 2.4.4 and I have developed some CMP entity beans (domain,group,user) for administrate some objects.

      I access to these bean by a stateful session bean "SessionLog" which have the following fields :
      public String domainName;
      public String groupName;
      public String login;

      And sometimes I've got an error about "transaction context". I've got an web interface which work under Catalina and when I make a refresh it works.

      I don't understand my error, can you help me ?

      This is the message of JBoss :
      [ERROR,sessionLog] 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 transaction context
      java.rmi.RemoteException: Application Error: tried to enter Stateful bean with different transaction context
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:206)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:339)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      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:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      [ERROR,Default] javax.ejb.ObjectNotFoundException: Object with primary key com.toto.manager.admin.users.UserPK@3580e2 not found in storage
      [ERROR,Default] <<no stack trace available>>
      [ERROR,Default]