[BPM 8.5.7]
I frequently encounter a deadlock in the LSW_USR_ATTR table. The problem once encountered affects the BPM portal which prevents users from login in order to take action on the tasks assigned to them.
Note: I have hidden the user ID value and replaced it by <user_id>
In the SystemOut file, I found the following error trace:
[8/30/20 14:26:15:114 AST] 0001dad7 UserOrgModule E CWLLG1162E: An exception occurred while setting the attribute Portal Mention Timestamp to value 2020-08-30T11:25:15.084Z for user <user_id>. Error: com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
[8/30/20 14:27:15:084 AST] 0001dad7 UserOrgModule E CWLLG1162E: An exception occurred while setting the attribute Portal Mention Timestamp to value 2020-08-30T11:25:15.084Z for user <user_id>. Error: com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
[8/30/20 14:46:21:040 AST] 0001d625 UserOrgModule E CWLLG1162E: An exception occurred while setting the attribute Portal Mention Timestamp to value 2020-08-30T11:45:04.167Z for user <user_id>. Error: com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
com.lombardisoftware.client.delegate.BusinessDelegateException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [update LSW_USR_ATTR set ATTR_VALUE = ?,ATTR_NUMBER_VALUE = ?,USER_ID = ?,USER_ATTR_DEF_VALUE_ID = ?,USER_ATTR_DEF_ID = ? where USER_ATTR_ID = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
#BusinessProcessManager(BPM)#Support#SupportMigration