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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
via Stack Overflow by Neuquino
, 2 years ago
could not initialize proxy - no Session
via Stack Overflow by Taha berserk
, 2 years ago
could not initialize proxy - no Session
via Stack Overflow by despot
, 2 years ago
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57)
at g2.database.mapping.Person$$EnhancerByCGLIB$$c482508f.getName()
at main.Main.main(Main.java:26)

Users with the same issue

Once, 3 months ago
3 times, 6 months ago
2 times, 10 months ago
124 times, 11 months ago
Once, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.