I am trying to write a servlet that enables an administrator to invalidate a user's session. I am using the SessionService class to access the user's session. However I keep getting null pointer exceptions on the relevant methods.

I instantiated a SessionService object:
SessionService sessionSrvc = new SessionService();

Then I tried invoking the following methods , all of which returned null pointer exceptions:

sessionSrvc.invalidateSession(SessionID);
HttpSession sessionToDelete = sessionSrvc.findSession(SessionID);
ArrayList sessionList = sessionSrvc.getSessions();

Similar functionality was deprecated and removed from the java api for security reasons. Does anyone know if this has been disabled in the jrun api? Alternatively, does anyone know of another way to disable a particular user's session?

Thanks for any help.

Gavin
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to