-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 7/6/2011 8:31 PM, eurotrans-Verlag wrote:
> I’m using Tomcat 7.0.16 on a system with Java 1.6.0_26 on Windows
> Serer 2008 and wondered about a strange NPE I got shortly after
> deploying a webapp to Tomcat:
> 
> SCHWERWIEGEND: An exception or error occurred in the container during
> the request processing java.lang.NullPointerException at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>
> 
va:287)
> 
> [...]
> 
>> From looking at Tomcat 7.0.16's source, I can see that line 287 in
> StandardWrapperValve is inside a catch block:
> 
> 285   } catch (Throwable e) { 286
> ExceptionUtils.handleThrowable(e); 287
> container.getLogger().error(sm.getString( 288
> "standardWrapper.serviceException", wrapper.getName(), 289
> context.getName()), e); 290       throwable = e; 291
> exception(request, response, e); 292  }
> 
> So does that mean that another Exception/Error occurred, but was
> suppressed by that NPE and therefore couldn't be logged?

Looks like it. I would be very interested to know which of those objects
is null: the container, the logger, the wrapper, or the context.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4WBTwACgkQ9CaO5/Lv0PDjCQCghs2HebGAdzzsoeqT0dh+5I/E
PhgAn3SC4m1b8557I+YeS1r14IpcnrW1
=UIKh
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to