synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udayanga Wickramasinghe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-740) Synapse throws "org.apache.http.ProtocolException: Transfer-encoding header already present" on multiple sends to client
Date Fri, 11 Mar 2011 05:42:59 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Udayanga Wickramasinghe updated SYNAPSE-740:
--------------------------------------------

    Attachment: synapse_SYNAPSE-740.patch

please find the patch attached to resolve this issue..please review and commit

> Synapse throws "org.apache.http.ProtocolException: Transfer-encoding header already present"
on multiple sends to client 
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-740
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-740
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Udayanga Wickramasinghe
>         Attachments: synapse_SYNAPSE-740.patch
>
>
>  <sequence name="main">
>         <in>
>             <property name="direction" value="incoming"/>
>             <sequence key="stockquote"/>
>         </in>
>         <out>
>             <send/>
>             <send/>
>         </out>
>     </sequence>
> For a configuration with multiple sends as shown above synapse throws following error
;
> 2011-03-11 10:59:21,844 [-] [HttpClientWorker-1] ERROR HttpCoreNIOSender Unexpected HTTP
protocol error sending response to : 127.0.0.1
> org.apache.http.ProtocolException: Transfer-encoding header already present
> 	at org.apache.http.protocol.ResponseContent.process(ResponseContent.java:63)
> 	at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:211)
> 	at org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:374)
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:513)
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:311)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
> 	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:159)
> 	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:254)
> 	at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:84)
> 	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
> 	at org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator.java:55)
> 	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
> 	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
> 	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:176)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:364)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:159)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
> 	at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:252)
> 	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> 2011-03-11 10:59:21,845 [-] [HttpClientWorker-1] ERROR Axis2Sender Unexpected error sending
message back
> org.apache.axis2.AxisFault: Unexpected HTTP protocol error sending response to : 127.0.0.1
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.handleException(HttpCoreNIOSender.java:818)
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:544)
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:311)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
> 	at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:159)
> 	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:254)
> 	at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:84)
> 	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
> 	at org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator.java:55)
> 	at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
> 	at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
> 	at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:176)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:364)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:159)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
> 	at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:252)
> 	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: org.apache.http.ProtocolException: Transfer-encoding header already present
> 	at org.apache.http.protocol.ResponseContent.process(ResponseContent.java:63)
> 	at org.apache.http.protocol.BasicHttpProcessor.process(BasicHttpProcessor.java:211)
> 	at org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:374)
> 	at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:513)
> 	... 18 more
> 2011-03-11 10:59:21,846 [-] [HttpClientWorker-1] ERROR SynapseCallbackReceiver Synapse
encountered an exception, No error handlers found - [Message Dropped]
> Unexpected error sending message back
> It is better if we just gracefully log this as error rather than throwing a Fault  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message