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:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190) 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.springframework.validation.ValidationUtils.rejectIfEmpty(ValidationUtils.java:108) at org.openmrs.validator.OrderValidator.validate(OrderValidator.java:83) at org.openmrs.validator.DrugOrderValidator.validate(DrugOrderValidator.java:83)

    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, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2 times, 5 months ago
    124 times, 5 months ago
    18 more bugmates