[ http://mc4j.org/jira/browse/STS-110?page=all ]
Tim Fennell updated STS-110:
----------------------------
Comment: was deleted
> FlashCope fails after session invalidation
> ------------------------------------------
>
> Key: STS-110
> URL: http://mc4j.org/jira/browse/STS-110
> Project: Stripes
> Issue Type: Bug
> Environment: JDK 1.5.0_06
> Tomcat 5.5.9
> Spring 2.0 M3 (prerelase)
> Stripes 1.2
> Acegi Security 1.0 RC2
> Reporter: Jeppe Cramon
> Assigned To: Tim Fennell
> Fix For: Release 1.2.1
>
>
> When a user logs out of our application he click a link to a logoff.jsp file,
> which ensures that the session is invalidated.
> Content of logoff.jsp:
> <%
> session.invalidate();
> Cookie terminate = new
> Cookie(TokenBasedRememberMeServices.ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY,
> null);
> terminate.setMaxAge(0);
> response.addCookie(terminate);
> response.sendRedirect("index.jsp");
> %>
> After that the user is redirected to the frontpage (index.jsp).
> Since we upgraded to Stripes 1.2 the new FlashScope component fails after
> session invalidation.
> Here's the log content:
> -------------------------------
> 11:25:49,781 INFO StripesFilter:167 - LocalePicker selected locale: da_DK
> 11:25:49,781 ERROR [jsp]:260 - Servlet.service() for servlet jsp threw
> exception
> java.lang.IllegalStateException: Cannot create a session after the response
> has been committed
> at org.apache.catalina.connector.Request.doGetSession(Request.java:2206)
> at org.apache.catalina.connector.Request.getSession(Request.java:2024)
> at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
> at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:842)
> at
> net.sourceforge.stripes.controller.FlashScope.getContainer(FlashScope.java:231)
> at
> net.sourceforge.stripes.controller.FlashScope.getCurrent(FlashScope.java:206)
> at
> net.sourceforge.stripes.controller.StripesFilter.flashOutbound(StripesFilter.java:244)
> at
> net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:199)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development