Here is the trace:

java.lang.NullPointerException
        at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code)
        at org.apache.tomcat.facade.HttpSessionFacade.getValue(Compiled Code)
        at SessionTrack.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)

In SessionTrack class i am trying to retrive the values(mode,lastAcessTime ,IdleTime etc)  which are stored in the HttpSession Object.
 

Noone Anil Kumar wrote:

Yes, i was using HttpServletRequest.getSession() function call inside getSession( req )
function, It's working fine with Servlet runner but not with tomcat as i said ...

William Kaufman wrote:

 
Is there any difference in :  Jsdk2.0 HttpSession Object & the above one ???? 
org.apache.tomcat.facade.HttpSessionFacade IS an HttpSession.
So whenever we try to access the current session object,   it seems that we get NULL object in Tomcat.
I don't know what getSession(HttpServletRequest) is--it doesn't seem to be in the JSDK 2.0.
You should call HttpServletRequest.getSession()  -- if you still have trouble, the problem is somewhere else.  You should check where that stack trace is coming from.

                                                            -- Bill K.

Reply via email to