Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 10:33:25 -0600
From:      "Thomas T. Veldhouse" <veldy@veldy.net>
To:        "Rossen Raykov" <rraykov@sageian.com>, <glewis@trc.adelaide.edu.au>
Cc:        <freebsd-java@FreeBSD.ORG>
Subject:   Re: Serialization problem.
Message-ID:  <018f01c0816c$61e39610$3028680a@tgt.com>
References:  <B7EEDC7A0B0AD311871F0004AC4CC04627573F@SERVER> <3A63A6BD.787B4FB5@partitur.se> <023101c07ff8$b2647980$4c00000a@sage> <01a201c07ff9$5be39680$3028680a@tgt.com> <20010118221737.A8960@ares.trc.adelaide.edu.au> <008301c0816a$a8e17c00$4c00000a@sage>

next in thread | previous in thread | raw e-mail | index | archive | help
You are correct - when I load the linux serialized file, I get the following
on my BSD box:

[veldy@fuggle veldy]$ java DateTest r test.out
Restored: Tue May 07 23:00:00 GMT-06:00 3901

That is one hour back - but it looks to me that the Linux JDK is
inappropriately reading the timezone information as CDT and that FreeBSD is
correctly reading it.  Thus the Linux JDK serialized incorrectly.

Tom Veldhouse
veldy@veldy.net

----- Original Message -----
From: "Rossen Raykov" <rraykov@sageian.com>
To: <glewis@trc.adelaide.edu.au>; <veldy@veldy.net>
Cc: <freebsd-java@FreeBSD.ORG>
Sent: Thursday, January 18, 2001 10:21 AM
Subject: Re: Serialization problem.


> In addition to my previous e-mail:
>
> If I use Linux JDK 1.2.2 port on BSD box the result is:
>
> <output>
>
> bsd$ /usr/local/linux-jdk1.2.2/bin/java -version
> java version "1.2.2"
> Classic VM (build Linux_JDK_1.2.2_RC4, green threads, sunwjit)
> bsd$ /usr/local/linux-jdk1.2.2/bin/java DateTest r test
> Restored: Wed May 08 00:00:00 EDT 3901
>
> bsd$ /usr/local/jdk1.2.2/bin/java DateTest r test
> Restored: Tue May 07 23:00:00 EST 3901
>
> sun$ java DateTest w test
> Saved: Wed May 08 00:00:00 EDT 3901
>
> </output>
>
> According to Sun:
> <cite>
> Any word that matches EST, CST, MST, or PST, ignoring case, is recognized
as
> referring to the time zone in North America that is five, six, seven, or
> eight hours west of Greenwich, respectively. Any word that matches EDT,
CDT,
> MDT, or PDT, ignoring case, is recognized as referring to the same time
> zone, respectively, during daylight saving time.
> </cite>
>
> The only think that I can thing about is summer/winter time change...
>
> Rossen
>
> ----- Original Message -----
> From: <glewis@trc.adelaide.edu.au>
> To: <veldy@veldy.net>
> Cc: <rraykov@sageian.com>; <freebsd-java@FreeBSD.ORG>
> Sent: Thursday, January 18, 2001 6:47 AM
> Subject: Re: Serialization problem.
>
>
> > 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
> >
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
>



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?018f01c0816c$61e39610$3028680a>