We have an application that runs fine in general, but checking the custom
logs, I see strange NullPointerExceptions every once in a while when the
application is trying to get information from the session.  Does anyone have
any ideas why the session could be disappearing occasionally?  (I'm using
HttpServletRequest.getSession(false) on JWS1.1.3 on NT)

It seems that something happens to the session in between the time that the
request is received and the response is written, because the session exists
when the request first comes in (we check it specifically to make sure the
user has logged in).

One possibility I'm wondering about is if it could be related to client-side
timeouts.  We have a horrible internet connection to access the application
in Uruguay, and we end up having a lot of "Connection Reset By Peer" errors
because the client's browser or proxy timeouts on us.  Could this session
problem be related at all?  If the connection is cut, does that invalidate
the session or anything?  If the connection is cut, and the application
tries to access data from the session before trying to write to the
ServletOutputStream, would it be possible to get a NullPointerException
instead of a Connection Reset By Peer message?

Any help would be much appreciated.

Thanks.
Paul Thomas
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

p.s. If you know anything about java/servlet-related job openings in India,
would you mind dropping me a line privately? (Please don't post to the
list!)  I'm an American currently working in Argentina, but I'm looking for
a new job in India.  My apologies if this is bad mailing-list etiquette...

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to