HTTP 400 BadRequest: WSO2ESB 2.0 loops and produces some GB of logfile

alexsc's picture

Hi,

My problem is quite the same as posted in http://wso2.org/forum/thread/8492.

My colleague tried to check a firewall rule via telnet.
He posted an irregular HTTP Request to the WSO2ESB, see the telnet output:

HTTP/1.0 400 Bad Request
Date: Tue, 19 Jan 2010 14:46:24 GMT
Content-Length: 50
Content-Type: text/plain; charset=US-ASCII
Connection: Close

The result on the WSO2ESB is that the following log statement occurs every milisecond, so 2-3 GB of logfile is written:
2010-01-19 15:46:24,311 WARN  [http-Listener I/O dispatcher-1] [org.apache.synapse.transport.nhttp.HttpCoreNIOListener] System may be unstable: IOReactor encountered a runtime exception : null
java.lang.NullPointerException
 at org.apache.synapse.transport.nhttp.ServerHandler.outputReady(ServerHandler.java:209)
 at org.apache.http.impl.nio.DefaultNHttpServerConnection.produceOutput(DefaultNHttpServerConnection.java:213)
 at org.apache.http.impl.nio.DefaultServerIOEventDispatch.outputReady(DefaultServerIOEventDispatch.java:151)
 at org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:177)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:317)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:294)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:256)
 at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:96)
 at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:556)
 at java.lang.Thread.run(Thread.java:619)

Could you provide a fix for this? We need to restart our ESB in this case, that's what we would like to avoid.

Thanks in advance,
Alex

supun's picture

This is fixed in the ESB

This is fixed in the ESB 2.1.3 release. Thanks, Supun..
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)