I have already implemented java web application (core application) which gives ability to plug modules into the core application. I'm getting org.hibernate.LazyInitializationException
could not initialize proxy - no Session
exception while trying to iterate through the properties of an java object with the help of reflection.
I found that, I can solve this by enabling eager loading with lazy="false"
attribute for hibernate mapping file. But I don't want to do that, since hibernate mapping files are inside my core code.
And I tried the solution in this, but it didn't help me either. I got the same error.
Is thre any other ways to solve this issue at the runtime ? Appreciate your valuable thoughts.