[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
problem about session invalidate  XML
Forum Index -> Terracotta for Web Sessions
Author Message
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

when I call method session.invalidate() and then invoke request.getSession(true).getAttribute,it will throws exception.
And when I logout, I invoke session.invalidate() then forward to other page using struts1.1. It throw a exception like that:

java.lang.IllegalStateException: This session is invalid
com.terracotta.session.SessionData.checkIfValid(SessionData.java:96)
com.terracotta.session.SessionData.getAttribute(SessionData.java:152)
org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:622)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:177)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
com.deluker.hr.base.servlet.HrBusinessServlet.callParentService(HrBusinessServlet.java:134)
com.deluker.hr.base.servlet.HrBusinessServlet.service(HrBusinessServlet.java:169)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
com.deluker.hr.base.servlet.HrBusinessServlet.callParentService(HrBusinessServlet.java:134)
com.deluker.hr.base.servlet.HrBusinessServlet.service(HrBusinessServlet.java:169)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:115)

I found the source code that while i invoke getAttribute method after i invoke invalidate() method it will check and throw new IllegalStateException("This session is invalid");
the same code without using terrcotta, it will be run ok.

how can I resolve this problem

Regards,

Anson Chan
[MSN]
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

We'll look into this

Want to post to this forum? Join the Terracotta Community
alex

neo
[Avatar]

Joined: 05/14/2007 11:02:54
Messages: 2
Offline

anson,

looks like you found a bug :(

The details are here: https://jira.terracotta.org/jira/browse/CDV-291

[WWW]
ncowles

neo
[Avatar]

Joined: 04/11/2007 15:36:51
Messages: 7
Location: texas
Offline

anson:

I see you're trying to cluster Liferay. If you set "session.enable.phishing.protection=false" in portal-ext.properties - it will not call "session.invalidate()" on login. This decreses the builtin security, but it will get a little further down the road. I'm on the same road, clustering liferay with terracotta, so please contact me if you'd like to collaborate.
[Yahoo!] aim icon
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

We really like working with communities on getting integrated with Terracotta. Let us know if we can help coordinate the effort in any way.

Want to post to this forum? Join the Terracotta Community
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

thanks.
but when the session expire or logout, it will call session.invalidate(),so problems will still in

Regards,

Anson Chan
[MSN]
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

This should be resolved in the 2.4 branch (as of revision 3923)

Any nightly build past that revision, or the next 2.4 stable release will contain the fix.

http://svn.terracotta.org/fisheye/changelog/Terracotta/?cs=3923

Tim Eck (terracotta engineer)
anson

neo

Joined: 06/05/2007 00:55:38
Messages: 9
Offline

get it,thanks Tim,
I'll try it later

Regards,

Anson Chan
[MSN]
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team