Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003942 [Resin] minor always 03-12-10 11:55 01-19-11 11:10
Reporter emil View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.10
Summary 0003942: lost sessions
Description (rep by bregnvig)

I get a lot IllegalStateExceptions, because the session is no longer valid.

java.lang.IllegalStateException: SessionImpl[abcNXQT1WSrpP56X1uACs,]: "can't call getAttribute() when session is no longer valid"

I catch the exception and examine the session. To help me with that, I have installed a HttpSessionListener to listen to the sessions life cycle. I can see all session that throw this exception has the same behaviour.

Session info: Created 2010-03-01 16:26:12. Destroyed: null null. Last accessed: 2010-03-01 16:28:10

The HttpSessionListener never registers that the session has been destroyed. And all the sessions that throws the IllegalStateException only lives for a short period.

It is not all sessions that are effected. I.e I have sessions that continues to exist after these session are destroyed.

Any help would really be appreciated.

--

I updated the version to 3.1.10 but I'm still experiencing the same problem.

Is there information I can give you that might help?

I can say that this problem only occurs during peak hour. I would guess that no more than 400 - 800 sessions exists at that time.
Additional Information java.lang.IllegalStateException: SessionImpl[abcsSLn60t-Od5LEWp_Cs,]: can't call getAttribute() when session is no longer valid.
  at com.caucho.server.session.SessionImpl.getAttribute(SessionImpl.java:283)
  at com.caucho.server.session.SessionImpl.getValue(SessionImpl.java:416)
  at com.caucho.jsp.PageContextImpl.getAttribute(PageContextImpl.java:444)
  at com.caucho.jsp.el.PageContextAttributeMap.get(PageContextAttributeMap.java:56)
  at javax.el.MapELResolver.getValue(MapELResolver.java:133)
  at com.caucho.jsp.el.PageContextELResolver.getValue(PageContextELResolver.java:167)
  at com.caucho.el.ArrayResolverExpr.getValue(ArrayResolverExpr.java:148)
  at com.caucho.el.PathExpr.getValue(PathExpr.java:142)
  at com.caucho.el.Expr.print(Expr.java:416)
  at _jsp._WEB_22dINF._tiles._layout__jsp$_CauchoFragment._jsp_fragment_1(_layout__jsp.java:561)
  at _jsp._WEB_22dINF._tiles._layout__jsp$_CauchoFragment._jsp_invoke(_layout__jsp.java:594)
  at com.caucho.jsp.JspFragmentSupport.invoke(JspFragmentSupport.java:92)
  at net.codeweasels.miniclub.web.taglib.PerformanceTag.doLoggingTag(PerformanceTag.java:37)
  at net.codeweasels.miniclub.web.taglib.AbstractIPortalTag.doTag(AbstractIPortalTag.java:34)
  at _jsp._WEB_22dINF._tiles._layout__jsp._jspService(_layout__jsp.java:57)
  at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
  at com.caucho.jsp.Page.pageservice(Page.java:578)
  at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
  at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
  at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:293)
  at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:111)
  at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
  at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
  at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
  at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
  at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
  at net.codeweasels.miniclub.web.util.filter.MenuIdFilter.doFilter(MenuIdFilter.java:30)
  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
  at net.codeweasels.miniclub.web.util.filter.RequestFilter.doFilter(RequestFilter.java:53)
  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
  at net.codeweasels.miniclub.web.util.filter.LastLoginFilter.doFilter(LastLoginFilter.java:84)
  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
  at net.codeweasels.miniclub.web.util.filter.IPortalFilter.doFilter(IPortalFilter.java:68)
  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
  at com.caucho.server.security.SecurityFilterChain.doFilter(SecurityFilterChain.java:134)
  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
  at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:436)
  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
  at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
  at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
  at java.lang.Thread.run(Thread.java:619)
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
03-12-10 11:55 emil New Issue
01-19-11 11:10 ferg Assigned To  => ferg
01-19-11 11:10 ferg Status new => closed
01-19-11 11:10 ferg Resolution open => fixed
01-19-11 11:10 ferg Fixed in Version  => 4.0.15


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker