Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1850

Hibernate Sessions are not being closed at the end of the request

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.10
    • Component/s: tapestry-hibernate
    • Labels:
      None
    • Environment:
      hibernate 3.2.5.ga, hibernate-annotations 3.3.0.ga

      Description

      Hibernate doesn't like persistent collections to be associated with multiple open Sessions - throwing the notorious 'Illegal attempt ...' exception if it happens across any.

      I've run into these exceptions with the tapestry-hibernate integration and believe the problem is caused by the HibernateSessionManagerImpl not closing Sessions on thread cleanup.

      Please see this mailing list thread for further discussion:
      http://thread.gmane.org/gmane.comp.java.tapestry.user/53095

      (I haven't upgraded to 5.0.6 yet, but didn't see anything in its source that would fix this, so i'm pretty sure it's still a problem).

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              lranatunga lasitha ranatunga
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: