[Netarchivesuite-users] moving of rollbackIfNeeded(...)
aponb at gmx.at
aponb at gmx.at
Fri Feb 4 13:50:18 CET 2011
Hi!
If have troubles with the executeSQL(...) method in
dk.netarkivet.common.utils.DBUtils.
In the finally block the method rollbackIfNeeded will be called. And
that method calls c.rollback(). That results in a
"com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
Can't call rollback when autocommit=true" - Error of my MySql-JDBC-Driver.
What is the reason for that rollback? Can we move the rollbackIfNeeded
call to the beginning of the catch clause? That would help in my case!
Regards
a.
More information about the NetarchiveSuite-users
mailing list