🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15535

Versioning Problems Serializing Objects

#15535
From: Gary Whitten
Date: Fri, 04 Jun 1999 00:00
26 lines
1747 bytes
We are seeing a problem trying to serialize and send objects over HTTP,
however, I suspect it is a serialization problem and would affect RMI
also. The problem is the sensitivity of the serialization versioning
mechanism. It is intended to ensure class consistency at the serialize
and deserialize ends of some object transfer. The problem is, the
generated serialVersionUID numbers seem to be affected by the JVM
actually
used. We are using a 1.2 HTTP server and 1.1.6 Client which each create
different serialVersionUIDs so an InvalidClassException is thrown and
the
object is not succesfully sent. When we use the same JVM version (1.1.6)
on the client and server ends, things work fine. We were also able to
get
the transfer to work by explicitly setting the class serialVersionUID
field for our custom classes, but, we do not have that option for
standard core or 3rd party Java classes. 

This would seem to be a rather large problem that would restrict
serialization any time the client and server JVMs are even slightly
mismatched. Is there some general way to deal with this problem or are
we
missing something?

                Thanks,
                  Gary Whitten
                  whitteng@con2inc.com
Technical Details
Message-ID: <3757EB06.15AA7EF6@con2inc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5d0d1d02a7143861,start
X-Google-Attributes: gidf74b3,public
From: Gary Whitten <whitteng@con2inc.com>
Subject: Versioning Problems Serializing Objects
Date: 1999/06/04
Message-ID: <3757EB06.15AA7EF6@con2inc.com>
X-Deja-AN: 485690394
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language