tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <>
Subject Re: Bug in InvokerServlet: NullPointerException, tomcat totally dies
Date Mon, 05 Jun 2000 10:09:27 GMT
On Sun, Jun 04, 2000 at 05:45:52PM -0700, Jim Rudnicki wrote:
> ----- Original Message ----- 
> > 
> > So the problem in InvokerServlet is the same thing: it is trying to
> > reference an instance variable ("context") which was set in its init()
> > method, but it's null, which means that the init() method must never
> > have been called!
> Just on a chance:
> Does the servlet call super() in its init?
> I remember seeing this reported as a common mistake that causes problems.

No, neither my servlet nor InvokerServlet calls super().  I'm pretty
sure it should not, right?

By the way, these NullPointerExceptions were a red herring -- I
tracked down the problem to a combination of

 (a) when a ServerSocket reports Connection reset by peer via a
SocketException, SimpleTcpEndpoint freaks out and closes the whole
endpoint. It should not; that's a normal thing to happen.

 (b) it reports said closing not to a log file, but to System.err, so
I couldn't see it anywhere (since I launch Tomcat with a remote
script, so System.err output goes nowhere).

I'm working on a patch to fix both issues.

 - Alex

Alex Chaffee             
jGuru - Java News and FAQs
Creator of Gamelan       
Founder of Purple Technology
Curator of Stinky Art Collective

View raw message