Announcement Announcement Module
Collapse
No announcement yet.
Webflow JPA , org.hibernate.LazyInitializationException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Webflow JPA , org.hibernate.LazyInitializationException

    Hi ,

    I'm facing a problem that is exposed several time here ,

    I'm using webflow , Jpa and hibernate , and i m having "org.hibernate.LazyInitializationException: failed to lazily initialize a collection : no session or session was closed "

    the <persistence-context /> is declared in the flow .

    The problem occurs like this :
    I have an entity Entity1 that have several Lazy Collection, i enter a modification Flow of this entity , made some ajax request that loads the lazy collections. Till now no problem , i can trigger any ajax action that deals with those lazy collections with no problem.
    The problem occurs when i quit the flow and go back to modify the same row.

    i debuggued the AbstractPersistentCollection hibernate class , and the session is null.
    I don't want to use the OSIV , neither an hibernate specific solution (I'm using JPA) or make the fetch EAGER, i want to resolve this with webflow.

    Thank you in advance for your Help.
Working...
X