Hi,
Third party service which I need to consume returns “null” when it has no data 
for a particular input.Here is how it looks in postman when I hit third party 
service.



and wso2 service console shows below erros and service gets hanged , the 
control does not come to response flow : (Error logs attached)
[2018-01-10 19:34:49,145] [EI-Core] ERROR - JsonUtil #getNewJsonPayload. Could 
not save JSON payload. Invalid input stream found. MessageID: 
urn:uuid:ca4bbd52-ec0d-4fe9-9dcf-b99b5fda1b8c[2018-01-10 19:34:49,146] 
[EI-Core] ERROR - JsonStreamBuilder Error occurred while processing document 
for application/jsonjava.lang.reflect.InvocationTargetException at 
sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at 
java.lang.reflect.Method.invoke(Unknown Source) at 
org.wso2.carbon.integrator.core.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:69)
 at 
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:148)
 at 
org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:136)
Please suggest how to handle this error. I want to throw some business 
exception like {"Message": "Not Data Found."}
Regards,
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to