WSO2 - ESB server 4.7 Hangs- when an invalid json format is given as input for rest API

若如初见. 提交于 2019-12-11 19:47:14

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!