1 Reply Latest reply on Jun 29, 2010 2:28 PM by Shawn Zimmerman

    Glassfish: EJB is already associated with an incomplete transaction

    Joseph Miller Newbie

      Hi, I have a Seam 2.1.2 application deployed on Glassfish 2.1.1, and it seems to be working, but I am seeing quite a lot of stack traces like this:


      I have <transaction:ejb-transaction/> in my components.xml


      Any ideas?


      EjbSynchronizations;EJB5018: An exception was thrown during an ejb invocation on [EjbSynchronizations]
      
      javax.ejb.EJBException: nested exception is: java.lang.IllegalStateException: EJB is already associated with an incomplete transaction
      javax.ejb.EJBException: nested exception is: java.lang.IllegalStateException: EJB is already associated with an incomplete transaction
      java.lang.IllegalStateException: EJB is already associated with an incomplete transaction
           at com.sun.ejb.containers.BaseContainer.useClientTx(BaseContainer.java:3501)
           at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:3323)
           at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1253)
           at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
           at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:127)
           at $Proxy203.isAwareOfContainerTransactions(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
           at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50001)
           at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
           at org.javassist.tmp.java.lang.Object_$$_javassist_seam_1.isAwareOfContainerTransactions(Object_$$_javassist_seam_1.java)
           at org.jboss.seam.transaction.CMTTransaction.registerSynchronization(CMTTransaction.java:116)
           at org.jboss.seam.persistence.ManagedPersistenceContext.joinTransaction(ManagedPersistenceContext.java:125)
           at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:111)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
           at org.jboss.seam.Component.unwrap(Component.java:2275)
           at org.jboss.seam.Component.getInstance(Component.java:2041)
           at org.jboss.seam.Component.getInstance(Component.java:1983)
           at org.jboss.seam.Component.getInstance(Component.java:1977)
           at org.jboss.seam.Component.getInstance(Component.java:1972)
           at org.jboss.seam.framework.Controller.getComponentInstance(Controller.java:272)
           at org.jboss.seam.framework.PersistenceController.getComponentInstance(PersistenceController.java:50001)
           at org.jboss.seam.framework.MutableController.getComponentInstance(MutableController.java:50001)
           at org.jboss.seam.framework.Home.getComponentInstance(Home.java:50001)
           at org.jboss.seam.framework.EntityHome.getComponentInstance(EntityHome.java:50001)
           at bookit.dao.BaseHome.getComponentInstance(BaseHome.java:50001)
           at bookit.dao.AdviserHome.getComponentInstance(AdviserHome.java:50001)
           at org.jboss.seam.framework.PersistenceController.getPersistenceContext(PersistenceController.java:20)
           at org.jboss.seam.framework.MutableController.getPersistenceContext(MutableController.java:50001)
           at org.jboss.seam.framework.Home.getPersistenceContext(Home.java:50001)
           at org.jboss.seam.framework.EntityHome.getPersistenceContext(EntityHome.java:50001)
           at bookit.dao.BaseHome.getPersistenceContext(BaseHome.java:50001)
           at bookit.dao.AdviserHome.getPersistenceContext(AdviserHome.java:50001)
           at org.jboss.seam.framework.EntityHome.getEntityManager(EntityHome.java:177)
           at bookit.dao.BaseHome.getEntityManager(BaseHome.java:50001)
           at bookit.dao.AdviserHome.getEntityManager(AdviserHome.java:50001)
           at org.jboss.seam.framework.EntityHome.create(EntityHome.java:31)
           at bookit.dao.BaseHome.create(BaseHome.java:50001)
           at bookit.dao.AdviserHome.create(AdviserHome.java:50001)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.persistence.ManagedEntityInterceptor.aroundInvoke(ManagedEntityInterceptor.java:48)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
           at org.jboss.seam.transaction.TransactionInterceptor$1.workInTransaction(TransactionInterceptor.java:50001)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.EE5SeamInvocationContext.proceed(EE5SeamInvocationContext.java:50001)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:50001)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
           at bookit.dao.AdviserHome_$$_javassist_seam_8.create(AdviserHome_$$_javassist_seam_8.java)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
      ....