We are still facing this problem and when we are trying to debug, here are some another logs:
3:41:50.777===========> MWFProcess.startWork: AD_WF_Node_ID=181 [231]
org.adempiere.exceptions.AdempiereException: The database operation timed out. Please try again later.: GenerateDocumentNoTimeOut
....
caused by: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request
Where: while locking tuple (224,9) in relation "ad_sequence"; State=57014; ErrorCode=0
and this timed out is occured at MSequence class, method public static int getNextID (int AD_Client_ID, String TableName, String trxName).
if (DB.getDatabase().isQueryTimeoutSupported())
{
pstmt.setQueryTimeout(QUERY_TIME_OUT);
}
rs = pstmt.executeQuery();
and the query is:
SELECT s.CurrentNext, s.CurrentNextSys
FROM AD_Sequence s WHERE s.AD_Sequence_ID = 1003139 AND s.IsActive='Y' AND s.IsTableID='N' AND s.IsAutoSequence='Y'
ORDER BY s.AD_Client_ID DESC FOR UPDATE OF s
But when we redo the debug this error is not occurred. So this error is happen "intermittently".
Is there something related with postgre setting that can cause this locked or is three anything else?
Thank you for your help.
Regards,
Iqbal