org.hibernate.LazyInitializationException

could not initialize proxy - no Session

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web686

  • could not initialize proxy - no Session
  • via GitHub by jezekp
    , 8 months ago
    could not initialize proxy - no Session
  • could not initialize proxy - no Session
  • Stack trace

    • org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) at g2.database.mapping.Person$$EnhancerByCGLIB$$c482508f.getName(<generated>) at main.Main.main(Main.java:26)

    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

    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 1 year ago
    49 times, 2 months ago
    2 times, 4 months ago
    124 times, 5 months ago
    17 more bugmates