SQL state [HY000]; error code [1206]; The total number of locks exceeds the lock table size;

uncategorized SQLException;

SQL state [HY000]; error code [1206]; 

The total number of locks exceeds the lock table size; nested exception is java.sql.SQLException: