Re: java.io.IOException: Local class not compatible
Jose Alberto Reguero <[email protected]> Sat, 22 Jul 2006 16:51:33 +0200
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
I tried without success. I read in another list: "What is happening is that the serialverUID of java.lang.Object (or possibl= y=20 java.lang.Object[]) is defined by the JVM rather than by the class itself" Thanks. Jose Alberto El S=E1bado, 22 de Julio de 2006 15:48, Etienne Gagnon escribi=F3: > 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=3D-8012369246846506644, local > > serialVersionUID=3D-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.