1. Another org.hibernate.LazyInitializationException I encount... seamframework.org21:19:41,807 [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-2) Error Rendering View[/crew/crewView.xhtml]: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.telopsys.siorc.model.CrewEnlistment.crewMasterAppraisals, no session or session was closed at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:393) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5] at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:385) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5] at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:125) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5] at org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:243) [hibernate-core-4.0.0.Beta5.jar:4.0.0.Beta5] at javax.faces.model.ListDataModel.isRowAvailable(ListDataModel.java:110) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final] at javax.faces.model.ListDataModel.setRowIndex(ListDataModel.java:185) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final] at javax.faces.model.ListDataModel.setWrappedData(ListDataModel.java:220) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final] at javax.faces.model.ListDataModel. |
2. Drools + org.hibernate.LazyInitializationException seamframework.org |
3. org.hibernate.LazyInitializationException: failed to lazily... seamframework.orgI have a bean that pulls orders and presents them in an dataTable. In the dataTable I use a command link to set the selected order back into the bean so that I can create a popup window to show the order for printing. From within the popup window I access the getter to pull the Order but when I try ... |
4. seam jbpm org.hibernate.LazyInitializationException seamframework.orgHi everyone, i beg your pardon for my bad English in advance. I'm using seam 2.1.2, jboss-as 4.2.2 and jbpm 3.2. I have two classes: Person and Car; a bidirectional one-to-many relationship exists between them (a person can own more cars). Considering a jbpm process, I perform outjection of an object person (of type Person) to the business-process scope (i'm using ... |
5. Seam:org.hibernate.LazyInitializationException: failed to l... seamframework.orgI think that you can lazy initialize only entities which are attached. And they are not if you hit back button to page where is lazy initialization of lists attached to before loaded entities (these entities are detached already so no no lazy). Simple workaround is to use long-running conversation or eager loading. In general I hate usage of back button ... |
6. LazyInitializationException in seam/hibernate forum.hibernate.org |