JDBC : Insert Sql Fails with autocommit false

java.sql.SQLTransientConnectionException: (conn=) Leaf Error (): Transaction rolled back mid-query ,

Sql / code : auto commit false
, delete table (successful)
, Insert into table select * from table 2 (unsuccessful → throwing error )

Hi there, which JDBC driver are you using? Can you share the full code snippet?