Description
Steps to reproduce
- Have multiple withdraw and deposit commands for the same savings account in a batchAPI request
- Run it in multiple threads multiple times on the same Fineract instance, to achieve
org.eclipse.persistence.exceptions.OptimisticLockException
Current behaviour
Response body non deterministic, and non related to OptimisticLockException:
—
[
{
"statusCode": 500,
"body": "{\"Exception\": java.lang.NullPointerException}"
}
]
—
[
{
"statusCode": 500,
"body": "{\"Exception\": java.lang.NullPointerException: Cannot invoke \"java.lang.Integer.intValue()\" because the return value of \"org.apache.fineract.batch.domain.BatchResponse.getStatusCode()\" is null}"
}
]
Expected behavior
The body should refer to the exception that occurred.
Attachments
Attachments
Issue Links
- is a child of
-
FINERACT-1874 Release Apache Fineract 1.9.0
- In Progress
- links to