Ibatis:Lock wait timeout exceeded; try restarting transaction

org.springframework.dao.CannotAcquireLockException: SqlMapClient operation; SQL [];   
--- The error occurred in sqlmap-mapping-terminalVehicleRelation.xml.  
--- The error occurred while applying a parameter map.  
--- Check the updateDeptName-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in sqlmap-mapping-terminalVehicleRelation.xml.  
--- The error occurred while applying a parameter map.  
--- Check the updateDeptName-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction


出现此类问题,请检查是否有事务未提交。有可能是当前正在操作数据库,而忘记commit;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章