DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21309>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21309

NullPointerException in CacheHandler

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
         AssignedTo|[EMAIL PROTECTED]    |[EMAIL PROTECTED]



------- Additional Comments From [EMAIL PROTECTED]  2003-07-10 17:33 -------
Hi Michael,
I'm sorry that you don't know what was going on to cause that problem.
I'd like to have seen the testcase to see why that happens.  

The code can't fully recover when it doesn't load the class, so throwing a 
ClassNotFoundException is only a little better than NullPointerException. 
However you are right that one shouldn't cache null in a Hashtable.

I've supplied a patch above for you to try.  You will will get a 
ClassNotFoundException, which will provide the name of the class that could not 
be found.  

I'm surprized that we are getting a class that can not be loaded here.

Regards,
Brian Minchau

Reply via email to