Avatar of hai_madhan
hai_madhan

asked on 

JPA-Hibernate LazyInitializationException - standalone application

Hi,

I'm using Spring JPA (Hibernate implementation) for my application. The web part works porperly.
But I've also have a standalone batch. It fails when I try to load data from db throwing the following exception. "org.hibernate.LazyInitializationException: could not initialize proxy - no Session"

How to resolve this?

Thanks,
Madhan
Java App Servers

Avatar of undefined
Last Comment
tvedtem

8/22/2022 - Mon