When the toString() method of your class de.myproject.MyClass is called,
you get a LazyInitializationException.
This is from Hibernate
To get the LazyInitializationException's full explanation, see
https://developer.jboss.org/wiki/LazyInitializationExceptionOvercome?_sscc=t
http://blog.gmorales.
I am getting a no session error while trying to display some details from the
database. I have pasted the error log below
Root cause:
org.hibernate.LazyInitializationException: could not initialize proxy - no
Session
at
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitialize