Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC commit failed

843859Aug 5 2009 — edited Nov 20 2014
Hi,

I am using Oracle10G and hibernate3.0 configured with the application.Once I commit the transaction explicitly by transaction.commit() I get:
org.hibernate.TransactionException: JDBC commit failed
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:130)

[JDBCTransaction.java:124]ERROR <JDBC commit failed>
java.sql.SQLException: You cannot commit with autocommit set!

Autocommit is set as off in both oracle as well as the hibernate configuration.The application works fine when configured with SQL 2000 database.If anyone knows the solution please help me.

Thanks in anticipation.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2009
Added on Aug 5 2009
4 comments
2,100 views