Bug 37195 - NPE in WebClassloader
Summary: NPE in WebClassloader
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.9
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords: ErrorMessage
Depends on:
Blocks:
 
Reported: 2005-10-21 11:10 UTC by Tamas Cseveny
Modified: 2005-11-10 18:34 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tamas Cseveny 2005-10-21 11:10:41 UTC
Hi,

I'm keep getting this message, when some   exception stopped application.  (eg.
OutOfMemory error)

java.lang.NullPointerException
        at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1795)

It seems, that this classloader has been stopped, but the webapp itself not. 
It should raise a meaningful message instead, not a NPE.
Comment 1 Yoav Shapira 2005-11-11 03:34:23 UTC
Once you get an OutOfMemoryError, the VM is in a badly defined state.  The NPE
is probably not the problem itself, just the first random error that occurs
after the OOME.

If you can reproduce the NPE reliably without an OOME, please reopen the issue
and let us know how you do it so that we can do it ourselves.  Otherwise, solve
the OOME first.