Maybe this helps someone who gets similar error in the future. We got most of the migration problems fixed with changing c3p0 maxStatements setting to 0. Discussion where this is analysed: APPARENT DEADLOCK c3p0 0.9.5.1 spring