Uploaded image for project: 'Hibernate ORM'
  1. HHH-9518

Exception and logging messages for collection multi-session access needs to be improved

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.CR2, 4.3.11
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: