[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-778) Test hangs if an exception is thrown, due to unclosed transaction

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Wed Oct 22 11:07:04 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juraci Paixao Krohling updated ANN-778:
---------------------------------------

    Attachment: ANN-778_Fixed.diff

As discussed by email, the parent class already handles the session opening and the exceptions. So, this diff replaces the other diff, as this one uses the features that the parent class already offers. 

> Test hangs if an exception is thrown, due to unclosed transaction
> -----------------------------------------------------------------
>
>                 Key: ANN-778
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-778
>             Project: Hibernate Annotations
>          Issue Type: Patch
>         Environment: Annotations from trunk on DB2 v91
>            Reporter: Juraci Paixao Krohling
>            Assignee: Juraci Paixao Krohling
>         Attachments: ANN-778.diff, ANN-778_Fixed.diff
>
>
> The test EmbeddedGenericsTest#testWorksWithGenericCollectionOfElements fails on DB2 v91, and the transaction which was started in the "setup" method blocks the execution of any other SQL Statement sent to the server. Thus, the tests needs to be enclosed by a try/catch to issue a rollback in case of failure. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list