Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
12.1.11.Final
-
None
Description
When I have a WriteSkewException happening with configured JDBCCacheStore I get a exception in method rollback():
In this case the method getTxConnection() doesn't find a Database Connection for the transaction. So a new Connection will be created. This new connection has AutoCommit = true. Back in the rollback() method the rollback() method of the newly created Connection is called. But calling a rollback on database connection with autocommit= true is not allowed.
Some implementations of Database connections will allow this and some not. If I have application Server like Wildfly the database connections are wrapped and they don't allow rollback on autocommit=true database connection.
Solution would be to call connection.setAutoCommit(false) in method getTxConnection().