Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 8454 invoked from network); 8 May 2008 13:46:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 13:46:26 -0000 Received: (qmail 45385 invoked by uid 500); 8 May 2008 13:46:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 44834 invoked by uid 500); 8 May 2008 13:46:16 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 44823 invoked by uid 99); 8 May 2008 13:46:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 06:46:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.115.142.81] (HELO bender.webpack.hosteurope.de) (217.115.142.81) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 13:45:28 +0000 Received: from world157.mi.fu-berlin.de ([160.45.115.157]); authenticated by bender.webpack.hosteurope.de running ExIM using esmtpsa (TLSv1:RC4-MD5:128) id 1Ju6RI-00071c-8x; Thu, 08 May 2008 15:45:40 +0200 Message-ID: <482303F9.2060206@abid76.de> Date: Thu, 08 May 2008 15:45:29 +0200 From: Abid Hussain User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: retrieving two different objects from session (should be the same) Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;abid.hussain@abid76.de;1210254362;5376bc1c; X-Virus-Checked: Checked by ClamAV on apache.org Hi everybody, I'm using tomcat 5.5.9 and am encountering a strange behaviour. I'm not sure, if it may be a tomcat issue... I'm putting an object (called form) into the user's session using session.setAttribute() and retrieving it again (after the user has done some actions) using session.getAttribute(). Now look at my log messages: Before putting the object into session: Put form (modulverwaltung.forms.ModuleForm@10e1567) in session (42A90C9AAEE86B81C916F093AAD69452) After retrieving it from session: Form (modulverwaltung.forms.ModuleForm@1678aef) has been submitted, got it from session (42A90C9AAEE86B81C916F093AAD69452) As you see the results from calling form.toString() are not the same. I've neither overriden toString() nor hashCode() - the methods from java.lang.Object are being used. It seems that this behaviour only occurs in productive system. In my local system it didn't come up. Anybody got an idea, how this can happen? Does tomcat modify the objects in session somehow...? Best regards, Abid -- Abid Hussain Mail: abid.hussain@abid76.de Web: http://www.abid76.de --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org