You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/05/12 21:40:44 UTC
DO NOT REPLY [Bug 19864] -
JNDIRealm NullPointerException / CommunicationException when Context Closed
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=19864>.
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=19864
JNDIRealm NullPointerException / CommunicationException when Context Closed
------- Additional Comments From david@daviddewolf.com 2003-05-12 19:40 -------
In the second stack trace, you will notice that the CommunicationException is
from a JNDIRealm that is the package com.vivare.common.tomcat. This realm is
simply the org.apache.catalina.realm.JNDIRealm with the following fix for the
NullPointerException.
if (e.getMessage()==null
|| e.getMessage().indexOf("Socket closed") < 0)
throw(e);
Obviously, since the code is identical, this behaivior also occurs when packagd
as org.apache.catalina.realm.JNDIRealm. Once again, this stack trace was added
simply to show the different exception messages that may indicate a timed-out
connection.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org