axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: [axis2] SimpleHTTPServer as transport listener causes too many connections to stay in TIME_WAIT state
Date Thu, 31 Jan 2008 21:48:37 GMT
Hello again,

I've tried to write a TransportListener which uses Jetty as http server
-- but I had no success: when requests come I get the following error

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>java.lang.NullPointerException</faultstring><detail><Exception>org.apache.axis2.AxisFault:
java.lang.NullPointerException
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:182)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
        at
ncl.qosp.modules.manager.RouterDispatcher.isFault(RouterDispatcher.java:230)
        at
ncl.qosp.modules.manager.RouterDispatcher.invoke(RouterDispatcher.java:267)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
        at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
        at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
        ... 16 more

I'm attaching my implementation.


Any help is appreciated,
Michele


On Thu, 2008-01-31 at 19:47 +0000, Michele Mazzucco wrote:
> Hello everybody,
> 
> I'm facing a serious problem with too many connections left in TIME_WAIT
> state, causing my system to hang. 
> Since on the server side I run some ServiceClient instances as well I
> wasn't sure about the root of my problem, but after some investigations
> I've found out that the responsible for this is the SimpleHTTPServer
> used as transport receiver for incoming http requests.
> 
> Given that the NIO listener/sender are not stable (see the JIRAs below)
> I have to stick with these. Is there anything I can do?
> Is there any way to inject a custom http connection manager and manually
> clean up the unused connections?
> 
> 
> Thanks in advance,
> Michele
> 
> 
> [1] https://issues.apache.org/jira/browse/AXIS2-3473
> [2] http://www.mail-archive.com/axis-user@ws.apache.org/msg37314.html
> [3] https://issues.apache.org/jira/browse/AXIS2-3428
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

Mime
View raw message