[DEV] [PET] Error with empty response body with application/json Content-Type in ESB 5.0.0-M2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[DEV] [PET] Error with empty response body with application/json Content-Type in ESB 5.0.0-M2

kalyani
Hi All,

I am currently working on redmine connector improvement. For that when we get empty response body from API, it's returning error as below.
For example, response from the API for the delete method
if it is deleted - 200 OK
if it is not exist - 404 not found

we are getting status code only, but empty response body.

The needed action is working fine[1]. But it is returning error as below[2].
I am testing these methods using ESB 4.9.0, also I had test with 5.0.0 M2 as well.

Error Log,

[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "DELETE /groups/40.json HTTP/1.1[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "X-Redmine-API-Key: 79687e3f41478afd98ca3da803faa3f0bf578422[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Action: urn:deleteGroup[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept-Charset: UTF-8[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Content-Type: application/json[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Host: connect.m.redmine.org:80[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "HTTP/1.1 404 Not Found[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Date: Thu, 31 Mar 2016 05:18:36 GMT[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Server: Apache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-UA-Compatible: IE=Edge,chrome=1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Request-Id: 4dd06213912e6896a9920666cf3f6c97[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Runtime: 0.047363[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Rack-Cache: invalidate, pass[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Set-Cookie: _redmine_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWMyNTRjMDcxMTU2OTlmZjllZWQzY2YzMzU0MzRmNjhjBjsAVEkiCGVudgY7AEYiDGNvbm5lY3Q%3D--ea26af68c6e4add80bce7e6d896042483703f544; path=/; HttpOnly[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Keep-Alive: timeout=15, max=100[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Transfer-Encoding: chunked[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Content-Type: application/json; charset=utf-8[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> " [\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "0[\r][\n]"
[2016-03-31 10:48:36,923]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,923] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,930]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - JsonUtil #newJsonPayload. Could not save JSON payload. Invalid input stream found. MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - DeferredMessageBuilder Error building message
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.

[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,931] ERROR - RelayUtils Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,932] ERROR - AnonymousListMediator Error while building message
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  Caused by: org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      ... 14 more
[2016-03-31 10:48:36,935]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,934]  INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Error while building message, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>



Also I found the JIRA issue[3] same as this. But not resolved yet.

[3] https://wso2.org/jira/browse/ESBJAVA-4244

Can anyone give any suggestion on this?

--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: 0776390284

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [DEV] [PET] Error with empty response body with application/json Content-Type in ESB 5.0.0-M2

malakasilva
Seems like a fix is available with [1]. Increased the priority.


On Thu, Mar 31, 2016 at 11:39 AM, Kalyani Yogeswaranathan <[hidden email]> wrote:
Hi All,

I am currently working on redmine connector improvement. For that when we get empty response body from API, it's returning error as below.
For example, response from the API for the delete method
if it is deleted - 200 OK
if it is not exist - 404 not found

we are getting status code only, but empty response body.

The needed action is working fine[1]. But it is returning error as below[2].
I am testing these methods using ESB 4.9.0, also I had test with 5.0.0 M2 as well.

Error Log,

[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "DELETE /groups/40.json HTTP/1.1[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "X-Redmine-API-Key: 79687e3f41478afd98ca3da803faa3f0bf578422[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Action: urn:deleteGroup[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept-Charset: UTF-8[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Content-Type: application/json[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Host: connect.m.redmine.org:80[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "HTTP/1.1 404 Not Found[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Date: Thu, 31 Mar 2016 05:18:36 GMT[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Server: Apache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-UA-Compatible: IE=Edge,chrome=1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Request-Id: 4dd06213912e6896a9920666cf3f6c97[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Runtime: 0.047363[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Rack-Cache: invalidate, pass[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Set-Cookie: _redmine_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWMyNTRjMDcxMTU2OTlmZjllZWQzY2YzMzU0MzRmNjhjBjsAVEkiCGVudgY7AEYiDGNvbm5lY3Q%3D--ea26af68c6e4add80bce7e6d896042483703f544; path=/; HttpOnly[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Keep-Alive: timeout=15, max=100[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Transfer-Encoding: chunked[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Content-Type: application/json; charset=utf-8[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> " [\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "0[\r][\n]"
[2016-03-31 10:48:36,923]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,923] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,930]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - JsonUtil #newJsonPayload. Could not save JSON payload. Invalid input stream found. MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - DeferredMessageBuilder Error building message
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.

[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,931] ERROR - RelayUtils Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,932] ERROR - AnonymousListMediator Error while building message
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  Caused by: org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      ... 14 more
[2016-03-31 10:48:36,935]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,934]  INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Error while building message, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>



Also I found the JIRA issue[3] same as this. But not resolved yet.

[3] https://wso2.org/jira/browse/ESBJAVA-4244

Can anyone give any suggestion on this?

--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: <a href="tel:0776390284" value="+94776390284" target="_blank">0776390284



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [DEV] [PET] Error with empty response body with application/json Content-Type in ESB 5.0.0-M2

malakasilva
Seems like a fix is available with [1]. Increased the priority.


On Thu, Mar 31, 2016 at 11:55 AM, Malaka Silva <[hidden email]> wrote:
Seems like a fix is available with [1]. Increased the priority.


On Thu, Mar 31, 2016 at 11:39 AM, Kalyani Yogeswaranathan <[hidden email]> wrote:
Hi All,

I am currently working on redmine connector improvement. For that when we get empty response body from API, it's returning error as below.
For example, response from the API for the delete method
if it is deleted - 200 OK
if it is not exist - 404 not found

we are getting status code only, but empty response body.

The needed action is working fine[1]. But it is returning error as below[2].
I am testing these methods using ESB 4.9.0, also I had test with 5.0.0 M2 as well.

Error Log,

[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "DELETE /groups/40.json HTTP/1.1[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "X-Redmine-API-Key: 79687e3f41478afd98ca3da803faa3f0bf578422[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Action: urn:deleteGroup[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept-Charset: UTF-8[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Content-Type: application/json[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Host: connect.m.redmine.org:80[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-03-31 10:48:36,712]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,712] DEBUG - wire << "[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "HTTP/1.1 404 Not Found[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Date: Thu, 31 Mar 2016 05:18:36 GMT[\r][\n]"
[2016-03-31 10:48:36,921]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,921] DEBUG - wire >> "Server: Apache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-UA-Compatible: IE=Edge,chrome=1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Request-Id: 4dd06213912e6896a9920666cf3f6c97[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Runtime: 0.047363[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "X-Rack-Cache: invalidate, pass[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Set-Cookie: _redmine_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWMyNTRjMDcxMTU2OTlmZjllZWQzY2YzMzU0MzRmNjhjBjsAVEkiCGVudgY7AEYiDGNvbm5lY3Q%3D--ea26af68c6e4add80bce7e6d896042483703f544; path=/; HttpOnly[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Keep-Alive: timeout=15, max=100[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Connection: Keep-Alive[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Transfer-Encoding: chunked[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "Content-Type: application/json; charset=utf-8[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "1[\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> " [\r][\n]"
[2016-03-31 10:48:36,922]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,922] DEBUG - wire >> "0[\r][\n]"
[2016-03-31 10:48:36,923]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,923] DEBUG - wire >> "[\r][\n]"
[2016-03-31 10:48:36,930]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - JsonUtil #newJsonPayload. Could not save JSON payload. Invalid input stream found. MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,930] ERROR - DeferredMessageBuilder Error building message
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.

[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,931]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,931] ERROR - RelayUtils Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,932] ERROR - AnonymousListMediator Error while building message
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  org.apache.axis2.AxisFault: Error while building Passthrough stream
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.handleException(RelayUtils.java:283)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:142)
[2016-03-31 10:48:36,932]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:98)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:72)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.filters.SwitchMediator.mediate(SwitchMediator.java:178)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at java.lang.Thread.run(Thread.java:745)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  Caused by: org.apache.axis2.AxisFault: No JSON payload provided.
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.commons.json.JsonStreamBuilder.processDocument(JsonStreamBuilder.java:52)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:138)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      at org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:133)
[2016-03-31 10:48:36,933]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -      ... 14 more
[2016-03-31 10:48:36,935]  INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -  [2016-03-31 10:48:36,934]  INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:e831f758-c792-467c-a8b3-a0fc868fd0f5, Direction: request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Error while building message, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>



Also I found the JIRA issue[3] same as this. But not resolved yet.

[3] https://wso2.org/jira/browse/ESBJAVA-4244

Can anyone give any suggestion on this?

--
Kalyani Yogeswaranathan
Associate software engineer
WSO2 Inc.

Mobile: <a href="tel:0776390284" value="+94776390284" target="_blank">0776390284



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: <a href="tel:%2B94%20777%20219%20791" value="+94777219791" target="_blank">+94 777 219 791
Fax :<a href="tel:94%2011%C2%A02145300" value="+94112145300" target="_blank">94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.



--

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Fax :94 11 2145300 
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

WSO2, Inc. 
lean . enterprise . middleware 
http://www.wso2.com/

Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev