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

Stack Overflow | Zhao Yi | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Why I got no session exception error from spring jpa

    Stack Overflow | 6 months ago | Zhao Yi
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    JsonMappingException: could not initialize proxy - no Session

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

    What does @Proxy(lazy = false) do?

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

    Automated exception search integrated into your IDE

  5. 0

    Setting own proxy during @PostConstruct phase causes @Transactional problems

    Stack Overflow | 2 years ago | Marek R
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  6. 0

    Hibernate why is creating n query instead of 1?

    Stack Overflow | 2 years ago | FAndrew
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session

  1. SteVio1989 124 times, last 3 weeks ago
  2. tomthomas 1 times, last 4 weeks ago
  3. MoYapro 2 times, last 3 months ago
15 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
    JavassistLazyInitializer.invoke
    1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:165)[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
    2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:286)[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
    3. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:185)[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]
    3 frames
  3. com.cooltoo.go2nurse
    UserEntity_$$_jvst80d_8.getPassword
    1. com.cooltoo.go2nurse.entities.UserEntity_$$_jvst80d_8.getPassword(UserEntity_$$_jvst80d_8.java)[com.cooltoo.go2nurse-common-1.0.0-SNAPSHOT.jar!/:na]
    1 frame