Tapestry manages persistent state in the HttpSession.  As of 5.2, it
doesn't do anything special to handle cases of multiple requests
(perhaps due to Ajax) attempting to modify the same SSO in multiple
threads.

This aligns with Brian Goetz's observation that all stateful web
applications are inherently broken:

http://www.ibm.com/developerworks/library/j-jtp09238.html

I'm not aware of any concerns.  You may want to have your SSO
implement the HttpSessionBindingListener interface, and log the
details of when it is bound (saved to the HttpSession). That might
illuminate what's going on.

It may be a bug in your servlet container, it may be a race condition
between threads, or it may just be a coding problem in your code.  I
hate to say it, but the last option is the most likely (given the
total lack of information you've provided).

On Thu, Oct 14, 2010 at 3:01 AM, Moritz Gmelin <moritz.gme...@gmx.de> wrote:
> Hi,
>
> since upgradeing to Tapestry 5.2 (5.2.0 and 5.2.1) we sometimes obseve that 
> the contents of our SessionStateObject gets lost.
> The Session-ID between 2 requests is identical, but the Hashcode of the 
> @SessionState object changes and thus the contents are lost.
> If everything works correctly, the getHashCode() of the SessionState object 
> does not change between requests. But in the case where our SessionState 
> objects get lost beweeen requests, obviousely a new SessionState object gets 
> created.
> This happens only in very rare cases but if it does, our users get chucked 
> out of their pages.
> This has not happened with t5.1.0.5 as far as we can see.
>
> Has anyone else seen this problem yet? Any hints about a possible solution?
>
> Thanks
>
> Moritz
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to