Troubleshooting
Problem
When invalid JSON is received, Integration Server immediately sends full error dump back to client, without giving a possibility to handle an exception in the flow service.
The error dump contains the structure of the package of my web service - this level of details should not be visible to a client.
Here is sample request/response.
In the example requests message, the field 'sourceSystemTransactionID' should be of type long.
Supplying a value that exceeds MAX value for data type long produces this exception.
REQUEST:
{
"completeCallRequest":{
"serviceProvider":"IDEMIA",
"sourceSystem":"CIM_TICKET_CHECKER",
"sourceSystemTransactionID":1234561810030000001,
"sourceTransactionDateTimestamp":"2018-10-03T07:15:00-04:00",
"rdl":1000,
"esn":"1000",
"callType":2,
"logNumber":123,
"arrivalTime":"2018-02-20T10:56:59-04:00",
"causeCode":5,
"diagnosisCode":50,
"fixCode":50,
"employeeNumber":123
}
}
RESPONSE (received on a client side):
{
"$errorDump": "com.wm.util.coder.InvalidDatatypeException: [ISC.0076.9018] Numeric value (1000000000000000000000000) for field rdl is outside the range for long numbers. Long numbers must be within the range of -9223372036854775808 to 9223372036854775807. Error:java.lang.NumberFormatException: For input string: "1000000000000000000000000" at com.wm.util.coder.IDataJSONCoder.getLongValue(IDataJSONCoder.java:494) at com.wm.util.coder.IDataJSONCoder.decodeJSONObject(IDataJSONCoder.java:390) at com.wm.util.coder.IDataJSONCoder.decodeJSONObject(IDataJSONCoder.java:384) at com.wm.util.coder.IDataJSONCoder.decode(IDataJSONCoder.java:347) at com.wm.app.b2b.server.ContentHandler_JSON.getInputValues(ContentHandler_JSON.java:52) at com.wm.app.b2b.server.HTTPInvokeHandler.getPostParams(HTTPInvokeHandler.java:694) at com.wm.app.b2b.server.HTTPInvokeHandler.getContentForPostAndPut(HTTPInvokeHandler.java:665) at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:157) at com.wm.app.b2b.server.RESTHandlerV2.process(RESTHandlerV2.java:32) at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:181) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:387) at com.wm.util.pool.PooledThread.run(PooledThread.java:127) at java.lang.Thread.run(Thread.java:748) ",
"$errorInfo": {
"$errorDump": "com.wm.util.coder.InvalidDatatypeException: [ISC.0076.9018] Numeric value (1000000000000000000000000) for field rdl is outside the range for long numbers. Long numbers must be within the range of -9223372036854775808 to 9223372036854775807. Error:java.lang.NumberFormatException: For input string: "1000000000000000000000000" at com.wm.util.coder.IDataJSONCoder.getLongValue(IDataJSONCoder.java:494) at com.wm.util.coder.IDataJSONCoder.decodeJSONObject(IDataJSONCoder.java:390) at com.wm.util.coder.IDataJSONCoder.decodeJSONObject(IDataJSONCoder.java:384) at com.wm.util.coder.IDataJSONCoder.decode(IDataJSONCoder.java:347) at com.wm.app.b2b.server.ContentHandler_JSON.getInputValues(ContentHandler_JSON.java:52) at com.wm.app.b2b.server.HTTPInvokeHandler.getPostParams(HTTPInvokeHandler.java:694) at com.wm.app.b2b.server.HTTPInvokeHandler.getContentForPostAndPut(HTTPInvokeHandler.java:665) at com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:157) at com.wm.app.b2b.server.RESTHandlerV2.process(RESTHandlerV2.java:32) at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:181) at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:387) at com.wm.util.pool.PooledThread.run(PooledThread.java:127) at java.lang.Thread.run(Thread.java:748) ",
"$error": "[ISC.0076.9018] Numeric value (1000000000000000000000000) for field rdl is outside the range for long numbers. Long numbers must be within the range of -9223372036854775808 to 9223372036854775807. Error:java.lang.NumberFormatException: For input string: "1000000000000000000000000"",
"$localizedError": "[ISC.0076.9018] Numeric value (1000000000000000000000000) for field rdl is outside the range for long numbers. Long numbers must be within the range of -9223372036854775808 to 9223372036854775807. Error:java.lang.NumberFormatException: For input string: "1000000000000000000000000"",
"$errorType": "com.wm.util.coder.InvalidDatatypeException",
"$service": "OLGIdemiaIntegrations.GatewayConnectors.Inbound:receiveCallClearSlip",
"$user": "Administrator",
"$time": "Tue Feb 26 10:15:51 EST 2019"
},
"$error": "[ISC.0076.9018] Numeric value (1000000000000000000000000) for field rdl is outside the range for long numbers. Long numbers must be within the range of -9223372036854775808 to 9223372036854775807. Error:java.lang.NumberFormatException: For input string: "1000000000000000000000000"",
"$errorType": "com.wm.util.coder.InvalidDatatypeException"
}
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17224433