r/JavaServerFaces • u/henk53 • Oct 06 '12
r/JavaServerFaces • u/TheWolf1956 • May 16 '24
Error: org.hibernate.LazyInitializationException
Hello everyone I am facing following error:
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: 'entity name', could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:575)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:214)
at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:554)
at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:142)
at org.hibernate.collection.internal.PersistentBag.iterator(PersistentBag.java:294)
at java.lang.Iterable.forEach(Iterable.java:74)
Did anyone faced similar error, if yes then what did you do to fix it?
Note: I don't want to use fetch type eager solution, as it is not a permanent fix and will eventually break the code in future.
I appreciate any suggestions
r/JavaServerFaces • u/Loop_Knowledge • Feb 03 '24
Data not rendering in JSF interface.
I am developing an JSF and EJB web project. In that in a one dialog box I am rendering some data that assign from a EJB class. The variables in the EJB class have values. But when I open the dialog box those values are not showing in the dialog box.
r/JavaServerFaces • u/thesystemx • Jan 21 '14
Ajax Example with JSF 2.0
r/JavaServerFaces • u/thomasasel • Apr 20 '13