tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: NullPointerException after approx 3000 comet requests
Date Tue, 24 Apr 2007 21:42:30 GMT
Sebastiaan van Erk wrote:
> Hi,
>
> I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a 
> CometProcessor which handles a large number of requests in a very 
> short time, and after about 3000 requests I consistently get the 
> following two errors:
>
> Apr 18, 2007 12:09:19 PM org.apache.tomcat.util.net.NioEndpoint$Poller 
> events
> SEVERE:
> java.lang.NullPointerException
>    at 
> org.apache.tomcat.util.net.NioEndpoint$PollerEvent.run(NioEndpoint.java:1005) 
>
>    at 
> org.apache.tomcat.util.net.NioEndpoint$Poller.events(NioEndpoint.java:1109) 
>
>    at 
> org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1191)
>    at java.lang.Thread.run(Thread.java:619)
>
> Exception in thread "http-8080-43" java.lang.NullPointerException
>    at 
> org.apache.tomcat.util.net.NioEndpoint$Worker.run(NioEndpoint.java:1443)
>    at java.lang.Thread.run(Thread.java:619)
>
> Does anybody know how these errors can occur? Can it be a programming 
> error on my part (even though none of my code is in the stack traces). 
> Any hints/suggestions are welcome. If more information is needed I am 
> more than happy to provide it.
looks like the NPE is caused because the socket got closed/cancelled 
before there was a chance to reregister it.
In upcoming 6.0.12 you won't get a NPE, there simple wont be anything.
One suggestion is to do event.setTimeout on the BEGIN event to a much 
larger number

Filip
>
> Regards,
> Sebastiaan
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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