tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Gopal" <karthik_go...@hotmail.com>
Subject Logout Failure - Tomcat 4.0
Date Wed, 20 Mar 2002 13:17:45 GMT
Hi,

I have simple application, which has a logout feature in it's pages.
The logout servlet gets the session object from request, and passes the
session id to the CtrSessionEnd.
This class has a list of active sessions, it goes through the list checking
if the session id sent is equal to
the session id of the session in the list.
This exception occurs when I try to get the session id of the session in the
list.


java.lang.NullPointerException
 at
org.apache.tomcat.facade.HttpSessionFacade.getId(HttpSessionFacade.java:114)
 at
com.art.controller.CtrSessionEnd.invalidateSession(CtrSessionEnd.java:259)
 at LogoutServlet.doGet(LogoutServlet.java:73)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Unknown Source)


Any pointers to solve this problem.

regards,
Karthik

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message