Hello,
I am encountering following deadlock exception in my J2EE (Struts, Spring, Hibernate and EJB based) application:
14:27:07,023 WARN [JDBCExceptionReporter] SQL Error: 1205, SQLState: 40001
14:27:07,023 ERROR [JDBCExceptionReporter] Transaction (Process ID 64) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
14:27:07,023 ERROR [StatDataPrepareDaoImpl] Exception in StatDataPrepareDaoImpl : getStatusData() : org.hibernate.exception.LockAcquisitionException: could not execute query
I am not able to identify the cause of of this deadlock, because all my hibernate queries are "Select" queries only and not of type "update/insert" or delete".
The hibernate queries only read data from a few tables which are updated by some other process/program. I am not sure what could cause LockAcquisitionExceptiont to occur in this case.
Kindly let me know if there are any suggestions to handle/avoid this exception.
Regards,
Ashish
|