You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/12/28 09:27:47 UTC
[Bug 54355] New: Many a times httpSession.invalidate() gets executed
in concurrent thread
https://issues.apache.org/bugzilla/show_bug.cgi?id=54355
Bug ID: 54355
Summary: Many a times httpSession.invalidate() gets executed in
concurrent thread
Product: Tomcat 6
Version: 6.0.32
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: Manager application
Assignee: dev@tomcat.apache.org
Reporter: ynmanware@gmail.com
Classification: Unclassified
Issue: java.lang.IllegalStateException: getAttribute: Session already
invalidated
In our application, when the user logs out, we are invoking
httpSession.invalidate(); and then we are redirecting user to login page. But
many a times httpSession.invalidate() is executed in concurrent thread. This
results into IllegalStateException in later stages.
Following is the console trace
{code}
1. 14:03:10 DEBUG [ttp-8082-4] Startup - #Session Id:
AEBD73C3F228729C90BFC5498B4481FD
2. 14:03:10 DEBUG [ttp-8082-4] Startup -
#httpSession.invalidate() invoked...
3. 14:03:10 DEBUG [ttp-8082-5] LoginFilter -
#request.getSession(false).getId(): AEBD73C3F228729C90BFC5498B4481FD
4. 14:03:10 DEBUG [ttp-8082-5] LoginFilter -
#request.isRequestedSessionIdValid(): true
5. 14:03:10 DEBUG [ttp-8082-1] SessionContextListener -
#sessionDestroyed(HttpSessionEvent event) exiting...
6. 14:03:10 DEBUG [ttp-8082-1] SessionContextListener -
#sessionCreated(HttpSessionEvent event)
7. 14:03:10 DEBUG [ttp-8082-1] SessionContextListener - #Session Id:
0662CA084CBC71F4A7722E05E909E3CF
8. 14:03:10 DEBUG [ttp-8082-1] SessionContextListener - #Returning from
sessionCreated(HttpSessionEvent event)
9. 14:03:10 DEBUG [ttp-8082-1] IppAuthenticationProvider -
#IppAuthenticationProvider initialized....
10. 14:03:10 INFO [Thread-73 ] Parameters - CARNOT version:
7.1.0.30-r61111
Nov 29, 2012 2:03:10 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet Persistent Faces Servlet threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated
at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1077)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:110)
at
com.icesoft.faces.webapp.http.servlet.ProxyHttpSession.getAttribute(ProxyHttpSession.java:107)
at
com.icesoft.faces.webapp.http.servlet.ServletSessionAttributeMap.getAttribute(ServletSessionAttributeMap.java:48)
....
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at <path>.LoginFilter.doFilter(LoginFilter.java:385)
{code}
httpSession.invalidate() is invoked at line 2 but it actually completes at line
5.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54355] Many a times httpSession.invalidate() gets executed in
concurrent thread
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54355
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. Please use the users mailing list.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54355] Many a times httpSession.invalidate() gets executed in
concurrent thread
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54355
Yogesh <yn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ynmanware@gmail.com
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org