-
15. Re: access the entityManager in a converter (seam 2 beta)
adrien.loyat Jun 29, 2007 4:37 AM (in response to adrien.loyat)I've opened an issue http://jira.jboss.com/jira/browse/JBSEAM-1581.
-
16. Re: access the entityManager in a converter (seam 2 beta)
damianharvey Aug 18, 2007 10:32 AM (in response to adrien.loyat)FYI, I also just had this issue using 1.3.0.ALPHA and changing javax.faces.STATE_SAVING_METHOD in my web.xml back to "client" works around it.
Cheers,
Damian. -
17. Re: access the entityManager in a converter (seam 2 beta)
xalperte Sep 22, 2007 12:09 PM (in response to adrien.loyat)Hi,
I'm ussing the Seam 1.2.1GA with the SeamEntityManager (http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter), and I'm having the same problem, this is the exception:
Caused by: java.lang.IllegalStateException: EntityManager is closed
at org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:42)
at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:447)
at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:442)
at org.jboss.seam.persistence.EntityManagerProxy.joinTransaction(EntityManagerProxy.java:113)
at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:104)
at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:41)
at sun.reflect.GeneratedMethodAccessor723.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
at org.jboss.seam.framework.EntityQuery_$$_javassist_421.getResultList(EntityQuery_$$_javassist_421.java)
... 284 more
I don't understand what happends and why it happens?
What can I do to solve the problem? can I apply any patch to my environment configuration (download something...)?
Thanks
Javi -
18. Re: access the entityManager in a converter (seam 2 beta)
pmuir Sep 22, 2007 5:03 PM (in response to adrien.loyat)I suspect it isn't the same problem as there was a complete redesign of the entity converter internals between 1.2.1.GA and 2. Start a new thread and describe your problem completely.