Peter Santa created FINERACT-1927:
-------------------------------------
Summary: Incorrect exception info in BatchAPI response
Key: FINERACT-1927
URL: https://issues.apache.org/jira/browse/FINERACT-1927
Project: Apache Fineract
Issue Type: Bug
Components: Savings
Reporter: Peter Santa
h1. 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
{color:#6a8759}org.eclipse.persistence.exceptions.OptimisticLockException{color}
h1. {color:#172b4d}Current behaviour{color}
{color:#172b4d}Response body non deterministic, and non related to
OptimisticLockException:{color}
{color:#000000}---{color}
{color:#000000}[{color}
{color:#000000} {{color}
{color:#000000} {color}{color:#a31515}"statusCode"{color}{color:#000000}:
{color}{color:#098658}500{color}{color:#000000},{color}
{color:#000000} {color}{color:#a31515}"body"{color}{color:#000000}:
{color}{color:#0451a5}"\{\"Exception\": java.lang.NullPointerException}"{color}
{color:#000000} }{color}
{color:#000000}]{color}
{color:#000000}---{color}
{color:#000000}[{color}
{color:#000000} {{color}
{color:#000000} {color}{color:#a31515}"statusCode"{color}{color:#000000}:
{color}{color:#098658}500{color}{color:#000000},{color}
{color:#000000} {color}{color:#a31515}"body"{color}{color:#000000}:
{color}{color:#0451a5}"\{\"Exception\": java.lang.NullPointerException: Cannot
invoke \"java.lang.Integer.intValue()\" because the return value of
\"org.apache.fineract.batch.domain.BatchResponse.getStatusCode()\" is
null}"{color}
{color:#000000} }{color}
{color:#000000}]{color}
h1. {color:#172b4d}Expected behavior
{color}
{color:#172b4d}The body should refer to the exception that occurred.{color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)