java.lang.Exception: Deadlock

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

java.sql.SQLException: A lock could not be obtained due to a deadlock, cycle of locks and waiters is: Lock : ROW, JOBQUEUE, (1,28) Waiting XID : {722, U} , APP, SELECT id,status,checktime FROM jobqueue WHERE dochash=? AND jobid=? FOR UPDATE Granted XID : {717, X} Lock : ROW, JOBQUEUE, (1,29) Waiting XID : {717, U} , APP, SELECT id,status,checktime FROM jobqueue WHERE dochash=? AND jobid=? FOR UPDATE Granted XID : {718, X} Lock : ROW, JOBQUEUE, (1,28) Waiting XID : {718, U} , APP, SELECT id,status,checktime FROM jobqueue WHERE dochash=? AND jobid=? FOR UPDATE Lock : ROW, JOBQUEUE, (1,28) Waiting XID : {725, U} , APP, SELECT id,status,checktime FROM jobqueue WHERE dochash=? AND jobid=? FOR UPDATE Lock : ROW, JOBQUEUE, (1,28) Waiting XID : {723, U} , APP, SELECT id,status,checktime FROM jobqueue WHERE dochash=? AND jobid=? FOR UPDATE . The selected victim is XID : 722.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
at org.apache.manifoldcf.core.database.Database.getData(Database.java:948)
at org.apache.manifoldcf.core.database.Database.execute(Database.java:866)
at org.apache.manifoldcf.core.database.Database$ExecuteQueryThread.run(Database.java:677)

Users with the same issue

Once, 7 months ago
Once, 9 months ago
Once, 9 months ago
Once, 1 year ago
81 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.