hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Response already committed error when sending error responses on a load test
Date Sun, 14 Oct 2007 16:19:45 GMT
On Sun, 2007-10-14 at 19:14 +0530, Asankha C. Perera wrote:
> Hi
> 
> When I am doing a load test using Jakarta-HttpComponents-Bench/1.1, I am 
> seeing the following stack trace if the load test returns HTTP 500 
> responses. This cannot be seen a load test with HTTP 200 responses. Why 
> is a connection closed when using keepalives when responding to an HTTP 
> 500 is this something HTTP forces?
> 
> thanks
> asankha
> 

...

> -----------------------------------------------
> 2007-10-14 19:42:16,834 [127.0.1.1-asankha] [HttpServerWorker-2] ERROR 
> ServerHandler Unexpected HTTP protocol error : Response already submitted
> org.apache.http.HttpException: Response already submitted
>         at 
> org.apache.http.impl.nio.DefaultNHttpServerConnection.submitResponse(DefaultNHttpServerConnection.java:201)
>         at 
> org.apache.synapse.transport.nhttp.LoggingNHttpServerConnection.submitResponse(LoggingNHttpServerConnection.java:54)
>         at 
> org.apache.synapse.transport.nhttp.ServerHandler.commitResponse(ServerHandler.java:221)
>         at 
> org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:350)
>         at 
> org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:215)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>         at 

Asankha,

The cause of this exception is likely to be a bug in the protocol
handler. This exception can happen when if the handler initially submits
an OK response, then starts streaming out the content, runs into a
problem of some kind in the process of doing so, and then attempts to
submit an 5xx status code. 

Oleg

> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:104)
>         at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:170)
>         at 
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
>         at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>         at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:121)
>         at 
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:140)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:211)
>         at 
> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:175)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org
> 
> 


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


Mime
View raw message