This content has been marked as final.
Show 3 replies
-
1. Re: 2.1.0.BETA1: IllegalStateException: EntityManager is closed
thejavafreak Aug 29, 2008 7:39 PM (in response to vladimir.kovalyuk)Have you crossed check to jboss svn repo:
http://fisheye.jboss.com/browse/SeamMake sure that the code yo have pointed out was really what causes the problem
-
2. Re: 2.1.0.BETA1: IllegalStateException: EntityManager is closed
pmuir Aug 30, 2008 5:37 PM (in response to vladimir.kovalyuk)I see the problem, https://jira.jboss.org/jira/browse/JBSEAM-3360
-
3. Re: 2.1.0.BETA1: IllegalStateException: EntityManager is closed
anilerukala Nov 6, 2008 5:14 PM (in response to vladimir.kovalyuk)I am getting the same error when i use entity converter with secondary (not primary) database.
java.lang.IllegalStateException: EntityManager is closed
at org.hibernate.ejb.EntityManagerImpl.getSession(EntityManagerImpl.java:42)I am using Seam 2.1.0.GA and JPA.
Components.xml
<components xmlns="http://jboss.com/products/seam/components" xmlns:ui="http://jboss.com/products/seam/ui"> <persistence:managed-persistence-context name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/mduEntityManagerFactory" /> <persistence:managed-persistence-context name="entityManagerIDM" auto-create="true" persistence-unit-jndi-name="java:/idmEntityManagerFactory" /> <ui:jpa-entity-loader name="idmEntityLoader" entity-manager="#{entityManagerIDM}"/> <ui:entity-converter name="idmEntityConverter" entity-loader="#{idmEntityLoader}"/> </components>
xhtml page where I am using entity converter.
<h:selectOneListbox size="1" value="#{developmentDetailsAction.development.directSalesRep}"> <s:selectItems value="# {developmentDetailsAction.getDirectSalesReps()}" label="#{directSalesRepresent.firstname} #{directSalesRepresent.lastname}" var="directSalesRepresent" noSelectionLabel="Choose" /> <f:converter converterId="idmEntityConverter" /> </h:selectOneListbox>
More description about my problem is here.
Thanks,
Anil Erukala