[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
Fri Oct 3 10:01: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.diff

The diff containing a fix for the tests. It only puts the actual code inside try/catch block, to rollback it in case of exceptions.

> 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
>         Attachments: ANN-778.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