7 Replies Latest reply on Dec 4, 2012 10:28 AM by rszulgo

    Transactions of ejb 2.x in jboss 5.1

    rszulgo

      Greetings all,

      I'm migrating from JBoss 3.2.8.SP1 to JBoss 5.1.0.GA. After some necessary changes inc. configuration files, adding libraries etc. server has started successfully (without any exceptions and all ejbs, modules deployed properly). However, I'm facing problems with proper running of my application due to transactions' errors. I pasted a part of server log :

       

      2010-08-18 22:16:03,584 ERROR [pg.seti.dk.DocumentManagerBean] (http-127.0.0.1-8080-4) javax.ejb.RemoveException: An attempt to remove a session object while the object is in a transaction (EJB2.1, 7.6.4 Restrictions for Transactions): ejb-name=Operacja, method=public abstract void javax.ejb.EJBObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException, tx=TransactionImple < ac, BasicAction: 7f000101:c08d:4c6c2495:1a3 status: ActionStatus.RUNNING >

       

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:274)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)
      at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
      at org.jboss.ejb.Container.invoke(Container.java:1029)
      at sun.reflect.GeneratedMethodAccessor364.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

       

       

      Have you seen that error before or you know what might cause o problem? It occurs everytime the use of a EJB is needed. It's a problem with all EJBs.

       

      Thanks for any help

       

      -- Radek