Re: java.io.IOException: Local class not compatible
Etienne Gagnon <[email protected]> Sat, 22 Jul 2006 09:48:07 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============2097437002== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0D63A36D404AB31975DE3887" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0D63A36D404AB31975DE3887 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Jose, You could try to add an explicit serialVersionUID field with the right value in the problem class. Etienne Jose Alberto Reguero wrote: > I have this problem executing sun compiled classes: > > java.io.IOException: Bad data readed from the stream: class > [Ljava.lang.Object;: Local class not compatible: stream > serialVersionUID=-8012369246846506644, local > serialVersionUID=-559873559028329863 > at com.fresh.tve.stock.data.StockInformation.load (Unknown Source) > at m.run (Unknown Source) > at java.lang.Thread.run (Thread.java:709) > at java.lang.VMThread.callRun (VMThread.java:124) > at java.lang.Thread.callRun (Thread.java:397) > at java.lang.VirtualMachine.runThread (VirtualMachine.java:137) > > I think that the problem is in java/io/ObjectInputStream. > Is any way to solve this problem? > > I can't modify sun compiled code because is retrieved from mhp. -- Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ --------------enig0D63A36D404AB31975DE3887 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEwiydjyrJi4rH84gRAiJeAJ9AhLRle00ETIyGyIasshjDrjVf7ACffOUe HjkrLQCFvbiP1W0e98+fjL0= =Wp9J -----END PGP SIGNATURE----- --------------enig0D63A36D404AB31975DE3887-- --===============2097437002== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SableVM-user mailing list [email protected] http://sablevm.org/lists/control/listinfo/sablevm-user --===============2097437002==--