Results 1 to 4 of 4

Thread: LazyInitializationException

  1. #1
    Join Date
    Jan 2008
    Posts
    8

    Smile 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. #2
    Join Date
    Aug 2007
    Location
    Brisbane, Australia
    Posts
    33

    Default

    Are you using Hibernate?

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

  3. #3
    Join Date
    Jan 2008
    Posts
    8

    Default

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

  4. #4
    Join Date
    Aug 2007
    Location
    Brisbane, Australia
    Posts
    33

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •