tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject NioEndpoint.getPoller0 throws NPE
Date Sun, 03 Feb 2008 14:49:04 GMT
Hello everybody,

I'm running tomcat 6.0.14 on Linux. It worked fine for a couple of days
then, after a reboot, the NIO connector failed throwing the following
exception

03-Feb-2008 14:37:05 org.apache.tomcat.util.net.NioEndpoint
setSocketOptions
SEVERE:
java.lang.NullPointerException
        at
org.apache.tomcat.util.net.NioEndpoint.getPoller0(NioEndpoint.java:484)
        at
org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:985)
        at org.apache.tomcat.util.net.NioEndpoint
$Acceptor.run(NioEndpoint.java:1169)
        at java.lang.Thread.run(Thread.java:619)


The NIO connector is configured as follows in server.xml

<Connector port="8081"
protocol="org.apache.coyote.http11.Http11NioProtocol"
               redirectPort="8443" connectionLinger="20"
connectionTimeout="10000"
                keepAliveTimeout="5000" maxKeepAliveRequests="20"
socket.tcpNoDelay="true"
                socket.soKeepAlive="true" socket.soReuseAddress="true"
socket.soLingerOn="true" socket.soLingerTime="5"
                acceptCount="10" acceptorThreadCount="2"
useComet="false" maxThreads="100" minSpareThreads="5"/>


I've a cluster of machines running tomcat 5.5 + Axis2 which send a
message to tomcat 6 instance when they start up, when the error
happened.

On the other side the error was the following:

org.apache.axis2.AxisFault: Connection reset
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
        at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:269)
        at
ncl.qosp.modules.node.BootstrapHelper.register(BootstrapHelper.java:303)
        at ncl.qosp.modules.node.NodeModule.init(NodeModule.java:101)
        at
org.apache.axis2.context.ConfigurationContextFactory.initModules(ConfigurationContextFactory.java:222)
        at
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:200)
        at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:76)
        at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
        at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)
        at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
        ... 41 more



Any idea?

Thanks,
Michele


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message