org.hibernate.LazyInitializationException

could not initialize proxy - no Session

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web227

  • via Stack Overflow by gemorra
    ,
  • Stack trace

    • org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:148)[hibernate-core-5.0.11.Final.jar:5.0.11.Final] at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:266)[hibernate-core-5.0.11.Final.jar:5.0.11.Final] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:73)[hibernate-core-5.0.11.Final.jar:5.0.11.Final] at de.seeme.web.persistence.User_$$_jvst43d_a.isAdmin(User_$$_jvst43d_a.java)[bin/:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    SteVio1989SteVio1989
    124 times, last one
    tomthomastomthomas
    Once,
    linxiaolonglinxiaolong
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    MoYaproMoYapro
    2 times, last one
    18 more bugmates