问题
A REST API has been defined ESB. What we have observed is if the json format (invalid json), the request is hanging and the server doesn't give any response. Ideally it should throw some error at least and it should not hang.
回答1:
I had the same situation in WSO2 4.8.1. Try to change JsonStreamBuilder in your axis2.xml to JsonBuilder from (org.apache.synapse.commons.json) or use your own implementation.
来源:https://stackoverflow.com/questions/22817554/wso2-esb-server-4-7-hangs-when-an-invalid-json-format-is-given-as-input-for-r