In my application server logs, I'm seeing a lot of entries such as:
2012-05-17 16:57:02,130 [NotificationDispatcherInternalEventTimer] ERROR - - Transaction (Process ID 192) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2012-05-17 16:57:02,131 [NotificationDispatcherInternalEventTimer] ERROR - - org.springframework.dao.CannotAcquireLockException: could not execute query; nested exception is org.hibernate.exception.LockAcquisitionException: could not execute query
org.springframework.dao.CannotAcquireLockException: could not execute query; nested exception is org.hibernate.exception.LockAcquisitionException: could not execute query
Caused by:
org.hibernate.exception.LockAcquisitionException: could not execute query
Caused by: java.sql.SQLException: Transaction (Process ID 192) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2012-05-17 16:57:28,756 [ProcessDispatchRequestTimer] ERROR - - Transaction (Process ID 214) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
2012-05-17 16:57:28,756 [ProcessDispatchRequestTimer] ERROR - - Exception: org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query
Do others have these type of entries? I assume the server is retrying, just not sure why all these deadlocks are occuring.