tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: getAllClusterSessions gives OptionalDataException
Date Fri, 08 Jul 2011 19:55:51 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ronald,

On 7/8/2011 5:33 AM, Ronald Klop wrote:
> After some fun with debugging Tomcat on my live server (because I 
> couldn't reproduce it in test) it looks like a concurrency bug in my 
> own code.

D'oh.

> I think I modify a HashMap which is serialized in the session. For 
> some reason I don't get a ConcurrentModificationException, but in the
> byte[] in DeltaManager.handleALL_SESSION_DATA I had a HashMap with
> size 5, but I only saw 4 elements which gave the 
> OptionalDataException. I now use a synchronized map and don't see
> the exception anymore (after 1 day of testing, so I don't cheer too
> loud yet).

Definitely get back to us with an update. It would be nice to know that
this problem turned out to be caused by the webapp and not Tomcat in
some way.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4XYMcACgkQ9CaO5/Lv0PCmwACgub9BSbILSjSDFwnMej4p0JrR
f2wAnRZ4CmlvaiYfHVaN8oUTx+FWhytb
=b7Ol
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message