Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 10:04:51 -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:  <013d01c08168$64f16f20$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> <007f01c08166$36d0e140$4c00000a@sage>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is what I get on Sun Linux JDK:

veldy@cascade:~$ java DateTest w test.out
Saved: Wed May 08 00:00:00 CDT 3901
veldy@cascade:~$ java DateTest r test.out
Restored: Wed May 08 00:00:00 CDT 3901

Here is what I get with the native FreeBSD JDK:

[veldy@fuggle veldy]$ java DateTest w test.out
Saved: Wed May 08 00:00:00 GMT-06:00 3901
[veldy@fuggle veldy]$ java DateTest r test.out
Restored: Wed May 08 00:00:00 GMT-06:00 3901

Looks to me the only problem is the way timezones are reported and that is
probably an OS implementation issue.  Otherwise - it appears to be your code
:)

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 9:49 AM
Subject: Re: Serialization problem.


> Attached is simple class that reproduce the error on my systems.
> The test results:
>
> <output>
> sun$ uname -a
> SunOS nis 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10
> sun$ java -version
> java version "1.2.2"
> Solaris VM (build Solaris_JDK_1.2.2_06, native threads, sunwjit)
> sun$ java DateTest w test
> Saved: Wed May 08 00:00:00 EDT 3901
>
> bsd$ uname -a
> FreeBSD host 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Thu Oct 26 10:27:09
EDT
> 2000     user@host:/usr/src/sys/compile/KERNEL i386
> bsd$ java -version
> java version "1.2.2"
> Classic VM (build jdk1.2.2-FreeBSD:root:2000/10/25-20:23, green threads,
> nojit)
> bsd$ java DateTest r test
> Restored: Tue May 07 23:00:00 EST 3901
> </output>
>
> Let me know if you need more information.
>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?013d01c08168$64f16f20$3028680a>