org.hibernate.LazyInitializationException: could not initialize proxy - no Session

hibernate.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hibernate Community • View topic - LazyInitializationException: could not initialize proxy

    hibernate.org | 7 months ago
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    What is wrong with my Spring Hibernate Transaction Management Configuration?

    Stack Overflow | 6 years ago | despot
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  3. 0

    Hibernate/Spring3: could not initialize proxy - no Session

    Stack Overflow | 8 years ago | niklassaers
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    could not initialize proxy - no Session

    Stack Overflow | 3 years ago | Taha berserk
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  6. 0

    Why am I getting a Hibernate LazyInitializationException in this Spring MVC web application when the data displays correctly?

    Stack Overflow | 8 years ago | James McMahon
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session

  1. derprogger 49 times, last 1 week ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.LazyInitializationException

    could not initialize proxy - no Session

    at org.hibernate.proxy.AbstractLazyInitializer.initialize()
  2. Hibernate
    AbstractLazyInitializer.getImplementation
    1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57)
    2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
    2 frames
  3. Hibernate
    CGLIBLazyInitializer.invoke
    1. org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
    1 frame
  4. g2.database.mapping
    Person$$EnhancerByCGLIB$$c482508f.getName
    1. g2.database.mapping.Person$$EnhancerByCGLIB$$c482508f.getName(<generated>)
    1 frame
  5. main
    Main.main
    1. main.Main.main(Main.java:26)
    1 frame