java.sql.SQLException: Lock wait timeout exceeded; try restarting tra nsaction at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.m
Check if your where clause is optimized.. i.e. using primary key and/or indexes