Tapestry
  1. Tapestry
  2. TAPESTRY-1850

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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).

        Activity

        lasitha ranatunga created issue -
        Andy Huhn made changes -
        Field Original Value New Value
        Comment [ I believe I am bumping up against this issue, also. Let me know if you want to see the code that's making this issue show up. I am using 5.0.6.

        As always, thanks for your work,
        Andy ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Summary Hibernate Sessions are not being closed on thread cleanup Hibernate Sessions are not being closed at the end of the request
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.0.10 [ 12312936 ]
        Mark Thomas made changes -
        Workflow jira [ 12415538 ] Default workflow, editable Closed status [ 12568434 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568434 ] jira [ 12591488 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development