RespgetElementsByTagName(String)" because "errorDocument" is nullonse not coming but postman shows
Summary: Rest APIs response not coming properly in OIC response but shows proper in POSTMAN
Content (please ensure you mask any confidential information):
Error in OIC:
Error Message : java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "errorDocument" is null
for Rest api 200 code response coming proper like below:
{
"batch_id": 1,
"status": "Process Success.",
"errorcode": "",
"errormessage": ""
}
but for Rest api 400 code response not coming proper in OIC:
expected:
{
"batch_id": 59,
"status": "Process Failed.",
"errorcode": -20001,
"errormessage": "Backdated data can not be uploaded except last 3 days."
}
Error coming in OIC:
Error Message : java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Document.getElementsByTagName(String)" because "errorDocument" is null