Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52866 invoked from network); 3 Jul 2009 14:48:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 14:48:54 -0000 Received: (qmail 80598 invoked by uid 500); 3 Jul 2009 14:49:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 80537 invoked by uid 500); 3 Jul 2009 14:49:00 -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 80526 invoked by uid 99); 3 Jul 2009 14:49:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 14:49:00 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.56] (HELO QMTA06.westchester.pa.mail.comcast.net) (76.96.62.56) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 14:48:48 +0000 Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA06.westchester.pa.mail.comcast.net with comcast id BQ2n1c0071HzFnQ56SoUiK; Fri, 03 Jul 2009 14:48:28 +0000 Received: from [192.168.1.100] ([24.128.14.143]) by OMTA14.westchester.pa.mail.comcast.net with comcast id BSoT1c00335BYGQ3aSoTM6; Fri, 03 Jul 2009 14:48:28 +0000 Message-ID: <4A4E1A3A.1040305@christopherschultz.net> Date: Fri, 03 Jul 2009 10:48:26 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: NotSerializableException MemoryUser? References: <1010450670.18585.1246617271752.JavaMail.tomcat@localhost> In-Reply-To: <1010450670.18585.1246617271752.JavaMail.tomcat@localhost> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ronald, On 7/3/2009 6:34 AM, Ronald Klop wrote: > I'm running Tomcat 6.0.20 in a cluster on 3 nodes. If I restart one I > get this exception: > > > Caused by: java.io.NotSerializableException: > org.apache.catalina.users.MemoryUser That's an easy one: MemoryUser does not implement Serializable. > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> This is likely to be the problem: the manager app is trying to share its users across the cluster. Uh... don't do that. Either undeploy the manager app or use a different that doesn't use that type of User object. Or, write your own factory that returns serializable objects. > What can I do to make the MemoryUser serializable and why is it trying > to sync it with other nodes? It's probably trying to sync the session with other nodes, and this object is stored in the session. The rest of the stack trace would probably indicate that the cluster is trying to replicate sessions (or just this object, as it is being inserted into the session) or something like that. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAkpOGjoACgkQ9CaO5/Lv0PAKfgCVGPJmrP+xs5Aypo60NEU8uk2y TwCfTuaeseQX6b4g3qJNFCU85oezZGU= =iNCj -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org