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

  • LazyInitializationException

    Hi all,

    I am totally new to Spring.I am getting LazyInitilaization exception when i am trying to get a Set .

    Can anybody help me on this and tell me the solution how to resolve this.
    What could be the possible scnarios to get this exception.


    please help me anybody..

    Regards
    Debapriya

  • #2
    Are you using Hibernate?

    If so your may be trying to access an association outside of your hibernate session.

    Comment


    • #3
      ya i am using hibernate and spring both.so what is the solution for that.??
      can u please guide me...

      Comment


      • #4
        Try in your hibernate mapping package set

        Code:
        default-lazy="false"
        or

        on your set mapping
        Code:
        lazy="false"
        Either should work.

        You may also have better luck on the Data Access forum.

        Comment

        Working...
        X