Hello,

i already asked the question on stackoverflow (see here) but things are getting a bit urgent now:

After migrating an application from spring-boot 2.5.4 to 2.6.7 (2.7.0 likewise) the detailed stacktraces in my application log dissapeared:

This is the code build with 2.5.4:

2022-05-18 08:05:25.742 ERROR 15748 --- [s-clearing-p2-1] d.i.clearing.api.p2.ClearBorderoAsync    : org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.idslogistik.ipbackend.db.c03.dom.C3VerSendungDOM.hwts, could not initialize proxy - no Session

org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.idslogistik.ipbackend.db.c03.dom.C3VerSendungDOM.hwts, could not initialize proxy - no Session
        at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:606)
        at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)
        at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:585)
        at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149)
        at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:188)
...

With 2.6.7+ i only get the following oneliner:

2022-05-18 09:48:17.570 ERROR 3676 --- [s-clearing-p2-1] d.i.clearing.api.p2.ClearBorderoAsync    : org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: de.idslogistik.ipbackend.db.c03.dom.C3VerSendungDOM.hwts, could not initialize proxy - no Session
...

The Exception itself is okay (and already found and fixed). However, i lack the stacktrace.

Comment From: snicoll

Thanks for the report but let's continue the conversation on StackOverflow for now as it could lead to duplicated effort.