Date: Thu, 18 Jan 2001 22:17:37 +1030 From: Greg Lewis <glewis@trc.adelaide.edu.au> To: "Thomas T. Veldhouse" <veldy@veldy.net> Cc: Rossen Raykov <rraykov@sageian.com>, freebsd-java@FreeBSD.ORG Subject: Re: Serialization problem. Message-ID: <20010118221737.A8960@ares.trc.adelaide.edu.au> In-Reply-To: <01a201c07ff9$5be39680$3028680a@tgt.com>; from veldy@veldy.net on Tue, Jan 16, 2001 at 02:17:32PM -0600 References: <B7EEDC7A0B0AD311871F0004AC4CC04627573F@SERVER> <3A63A6BD.787B4FB5@partitur.se> <023101c07ff8$b2647980$4c00000a@sage> <01a201c07ff9$5be39680$3028680a@tgt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <rraykov@sageian.com> > To: <freebsd-java@freebsd.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010118221737.A8960>