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 Stack Overflow by gemorra
, 1 year ago
could not initialize proxy - no Session
via Stack Overflow by Abhishek Chatterjee
, 2 years ago
via Stack Overflow by B Hema Sekhar Reddy
, 6 months ago
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
at org.openmrs.Person_$$2a.getNames(Person_$$2a.java)
at org.openmrs.Provider.toString(Provider.java:107)
at org.springframework.validation.ValidationUtils.rejectIfEmpty(ValidationUtils.java:166)
at org.openmrs.validator.OrderValidator.validate(OrderValidator.java:83)
at org.openmrs.validator.DrugOrderValidator.validate(DrugOrderValidator.java:83)

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.