Session is randomly invalidated in jetty

View: New views
1 Messages — Rating Filter:   Alert me  

Session is randomly invalidated in jetty

by Manish1985 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

In our application, i am using jetty as a container/webserver.I have problem that in my application user is logged out randomly.This issue has no any fix pattern and it is reproduceable only on UAT environment.Suppose user has logged in and he is navigating through the application so some time user is automatically logged out.In my web.xml i have given session-timeout value 120 minutes.

(I have tried to reproduce this issue in QA environment, but i am not able to reproduce it in QA environment).

To find out the reason, i simply created HttpSessionListener and inside sessionDestroyed method i created Throwable object and printed stack trace.Following is a stack trace.Its showing that from jetty,the session is invalidated.


at org.mortbay.jetty.servlet.AbstractSessionManager.removeSession(AbstractSessionManager.java:661)
        at org.mortbay.jetty.servlet.AbstractSessionManager$Session.invalidate(AbstractSessionManager.java:934)
        at org.mortbay.jetty.servlet.HashSessionIdManager.invalidateAll(HashSessionIdManager.java:194)
        at org.mortbay.jetty.servlet.AbstractSessionManager.removeSession(AbstractSessionManager.java:653)
        at org.mortbay.jetty.servlet.AbstractSessionManager$Session.timeout(AbstractSessionManager.java:918)
        at org.mortbay.jetty.servlet.HashSessionManager.scavenge(HashSessionManager.java:200)
        at org.mortbay.jetty.servlet.HashSessionManager.access$000(HashSessionManager.java:36)
        at org.mortbay.jetty.servlet.HashSessionManager$1.run(HashSessionManager.java:144)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)
 


(currently i am using jetty 6.1.5 on UAT environment).
So can anybody tell me what should i do? i tried with jetty6.1.12 also to overcome from this issue but faced the same problem.

Your help will be appreciated.Kindly reply to my this issue.

Thanks a lot in advance.

Regards,
Manish