Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 26688 invoked from network); 7 Sep 2005 19:36:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2005 19:36:31 -0000 Received: (qmail 96477 invoked by uid 500); 7 Sep 2005 19:36:16 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 96457 invoked by uid 500); 7 Sep 2005 19:36:16 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 96431 invoked by uid 99); 7 Sep 2005 19:36:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 12:36:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.61.151.32] (HELO localdomain) (213.61.151.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 12:36:28 -0700 Received: from dragonfire ([84.154.115.252]) by localdomain for with eXtremail; Wed, 7 Sep 2005 21:24:40 +0200 From: "Leon Rosenberg" To: "'Tomcat Users List'" , Subject: AW: Tomcat/JVM hangs in session.getAttribute / HashMap.get() Date: Wed, 7 Sep 2005 21:35:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-Index: AcWz3kRNfuvUl7viSD6Srf2gLru+cQABL03g In-Reply-To: <20050907191040.25374.qmail@web31108.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20050907193629.0B4B110FB2D1@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N =20 > -----Urspr=FCngliche Nachricht----- > Von: Wade Chandler [mailto:hwadechandler-apache@yahoo.com]=20 > Gesendet: Mittwoch, 7. September 2005 21:11 > An: Tomcat Users List > Betreff: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get() >=20 >=20 > Should be enough to explain the issue and why synchronization=20 > should be used. I haven't looked at the Tomcat code, but why=20 > would a Session not use synchronized maps? In my opinion=20 > it's not a bug in HashMap as it's up front about it not being=20 > synchronized. To fix the original posters current situation=20 > they should be able to synchronize on an object when=20 > accessing the session...you'll just have to track down all of=20 > your calls which are setting and getting attributes and=20 > synchronize the code. >=20 Unfortunately no. Not only you have to rewrite all your calls to the session, you also have to rewrite all 3rd-party taglibs like struts, tapestry, pager, jstl or whatever you are using. Each getAttribute must become synchronized. It is simply not possible to fix it, without patching tomcat. Regards Leon --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org