From owner-freebsd-java Thu Jan 18 3:48:29 2001 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id BA92137B69B for ; Thu, 18 Jan 2001 03:48:01 -0800 (PST) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id WAA09010; Thu, 18 Jan 2001 22:17:37 +1030 (CST) (envelope-from glewis) Date: Thu, 18 Jan 2001 22:17:37 +1030 From: Greg Lewis To: "Thomas T. Veldhouse" Cc: Rossen Raykov , freebsd-java@FreeBSD.ORG Subject: Re: Serialization problem. Message-ID: <20010118221737.A8960@ares.trc.adelaide.edu.au> References: <3A63A6BD.787B4FB5@partitur.se> <023101c07ff8$b2647980$4c00000a@sage> <01a201c07ff9$5be39680$3028680a@tgt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <01a201c07ff9$5be39680$3028680a@tgt.com>; from veldy@veldy.net on Tue, Jan 16, 2001 at 02:17:32PM -0600 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Jan 16, 2001 at 02:17:32PM -0600, Thomas T. Veldhouse wrote: > I have noticed this as well. It is part of "Date" and does not apply to the > Calendar class. > > Tom Veldhouse > veldy@veldy.net > > ----- Original Message ----- > From: "Rossen Raykov" > To: > Sent: Tuesday, January 16, 2001 2:12 PM > Subject: Serialization problem. > > > > Hi All, > > > > I was using native jdk1.2.2-beta (not the lat one - (build > > jdk1.2.2-FreeBSD:root:2000/10/25-20:23, green threads, nojit)) to > > communicate from JServ to WebLogic (Solaris_JDK_1.2.2_06). > > Yesterday I discover strange problem with serialization. > > The Date object is not deserialized correctly on BSD side. > > All dates before April 1 2001 ware ok. > > After this date the Date object on BSD was with a day after the Date > object > > on WebLogic?! > > Running the same application on other Linux/JServ ageinst the same > WebLogic > > sever is fine. > > I changed the JDK on BSD box to the linux one (build Linux_JDK_1.2.2_RC4, > > green threads, sunwjit) and the error disappeared! > > I believed the error is inside BSD java port. > > For a pity I don't have time to dig it in depth nor to build the last > > version. > > > > Rossen Can one of you two come up with a simple example of this? I tried, but everything seemed to work for me: eclipse> uname -a SunOS eclipse 5.8 Generic eclipse> java -version java version "1.2.2" Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit) eclipse> java WriteDate Thu Mar 29 00:00:00 CST 2001 Mon Apr 02 00:00:00 CST 2001 misty> uname -a FreeBSD misty.eyesbeyond.com 4.1-RELEASE misty> java -version java version "1.2.2" Classic VM (build jdk1.2.2-FreeBSD:glewis:2000/10/05-07:13, green threads, nojit) misty> java ReadDate Thu Mar 29 00:00:00 GMT+09:30 2001 Mon Apr 02 00:00:00 GMT+09:30 2001 where WriteDate is a simple class that serializes a couple of dates either side of 1 April 2001 and ReadDate...well, you can guess that one :). I suspect something weird might be happening with locales, but its hard to track down without something reproducible. Am happy to send you the code for the test classes I wrote, but I'm sure you can duplicate it in about 2 minutes flat :). - Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message