We are having an issue with one of our Bonita process on our production server. As an overview, our diagram works as below flow:
Step 1- submitOrder: User submit an order by filling the submitOrder form
Step 2- reviewOrder: Manager reviews the order and can approve or reject. If approved the order is sent to a third-party application (in our case SAP business one) through the use of a custom connector.
Step 3- pickingList: After order is sent, the process goes on with item picking etc..
Our problem is that, seldom and randomly, it happens that one order failed at step 2. The order is correctly sent to the third-party application after reviewer approval, but for an unclear reason to us, the process sticks here and does not pass to step 3.
This happens very randomly for about 1 order ever 200-300 orders processed through our app. In the Portal as Admin, we see that this case has failed with one failed flow node.
This is what we get from the Bonita server logs (see below, I put in bold and italic the unusual SEVERE error that we get for failed orders, the rest is standard logs for every order processed successfully)
2020-04-15 08:49:10.951 +0000 SEVERE: org.bonitasoft.console.common.server.login.credentials.LoginDatastore Error while logging in the engine API.
2020-04-15 08:49:36.128 +0000 SEVERE: org.bonitasoft.console.common.server.login.credentials.LoginDatastore Error while logging in the engine API.
2020-04-15 08:50:44.123 +0000 SEVERE: org.bonitasoft.console.common.server.login.credentials.LoginDatastore Error while logging in the engine API.
2020-04-15 08:50:46.630 +0000 WARN: com.arjuna.ats.jta ARJUNA016027: Local XARecoveryModule.xaRecovery got XA exception XAException.XAER_RMFAIL
com.mysql.cj.jdbc.MysqlXAException: Undetermined error occurred in the underlying Connection - check your data for consistency
We really don't know if this error while logging can justify this failure, while the process is correctly started, and step 2 and 3 are handled one after the other in the same diagram.
Any idea about the cause of this issue. Any help will be greatly appreciated.
In advance, thank you very much.
Bonita Engine - Porduction server
Thank you for raising the issue here. We are going to try to reproduce. If you could join information about your custom connector, it would help us investigate and see if it is linked to it or not.
Hi again Timothe,
in the meantime I have doublechecked with our support team. A few customers have encountered the same issue.
The following steps should help you solve the problem:
Edit the file: <TOMCAT_HOME>/setup/tomcat-templates/bitronix-resources.properties
Comment the line:
Uncomment the line:
resource.ds1.testQuery=ROLLBACK4. Edit the file: <TOMCAT_HOME>/setup/tomcat-templates/bonita.xml
Replace the lines:
Can you please try it and tell me if it works? Thanks