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;

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