[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1316) SchemaUpdate : java.sql.SQLException: You cannot commit during a managed transaction!

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:52 EDT 2011


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

Steve Ebersole closed HHH-1316.
-------------------------------


Closing stale resolved issues

> SchemaUpdate : java.sql.SQLException: You cannot commit during a managed transaction!
> -------------------------------------------------------------------------------------
>
>                 Key: HHH-1316
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1316
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1
>         Environment: Hibernate 3.1 , Oracle 9i
>            Reporter: Kumar Matcha
>
> SchemaUpdate gets a connection from the ConnectionProviderFactory, which returns a connection based on the hibernate properties. When we use the following properties 
>  hibernate.connection.datasource = java:/hibernateDS 
>  hibernate.transaction.factory_class = org.hibernate.transaction.JTATransactionFactory
>  hibernate.transaction.manager_lookup_class = org.hibernate.transaction.JBossTransactionManagerLookup 
>  hibernate.current_session_context_class = jta
> SchemaUpdate fails because you cannot call a commit on a managed transaction. 
> Either Schema update shouldnt be allowed during a managed transaction, by throwing some exception, or commit should be disabled when using a managed transaction. 

-- 
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