The following exceptions arise occasionally in scenarios where the exception text itself is insufficient to diagnose the underlying issue (e.g. there should have been only one session or the session should have been open).
org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:..., no session or session was closed
In some cases, the issue is not reproducible on-demand. The "first failure" capture needs to be improved to better point to the reason without the need to reproduce the failure.