Author |
Message |
06/08/2007 00:12:45
|
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 |
|
|
06/08/2007 10:15:05
|
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 |
|
|
06/11/2007 11:05:43
|
alex
neo
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
|
|
|
06/13/2007 14:52:57
|
ncowles
neo
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.
|
|
|
06/13/2007 15:32:06
|
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 |
|
|
06/13/2007 19:45:19
|
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 |
|
|
06/22/2007 10:27:19
|
teck
seraphim
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)
|
|
|
06/23/2007 05:15:22
|
anson
neo
Joined: 06/05/2007 00:55:38
Messages: 9
Offline
|
get it,thanks Tim,
I'll try it later
|
Regards,
Anson Chan |
|
|
|