Announcement Announcement Module
Collapse
No announcement yet.
Why am I getting LazyInitializationException when using OpenEntityManagerInViewFilter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why am I getting LazyInitializationException when using OpenEntityManagerInViewFilter

    I've generated my project using Spring Roo and has not touched the xml files.

    All I'm trying to do is to get a collection through a ITD method of an entity.

    I get the following error:

    Code:
    SEVERE: Servlet.service() for servlet MyProject threw exception
    org.hibernate.LazyInitializationException: failed to lazily initialize a collect
    ion of role: com.myproject.main.domain.Juser.securityRoles, no session or session
    was closed
    Please guide me. I'm stuck badly.
Working...
X