XARecoveryModule: Error during recover (This connection has been closed)
Description
When I restart only the PostgreSQL service without restarting Bonita, the following exception is logged into the Cataline log approximately every 2 minutes:
WARN: com.arjuna.ats.jta ARJUNA016027: Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMERR
org.postgresql.xa.PGXAException: Error during recover
at org.postgresql.xa.PGXAConnection.recover(PGXAConnection.java:416)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.xaRecoveryFirstPass(XARecoveryModule.java:634)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:226)
at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkFirstPass(XARecoveryModule.java:171)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(PeriodicRecovery.java:770)
at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.run(PeriodicRecovery.java:382)
Caused by: org.postgresql.util.PSQLException: This connection has been closed.
at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:783)
at org.postgresql.jdbc.PgConnection.createStatement(PgConnection.java:1673)
at org.postgresql.jdbc.PgConnection.createStatement(PgConnection.java:366)
at org.postgresql.xa.PGXAConnection.recover(PGXAConnection.java:393)
... 5 more
There is no information about this error in the other log files. The error disappears only after Bonita is restarted.
Environment
Bonita 7.10.5, PostgreSQL 11 (also 12), Linux, CentOS Linux 8