[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: problem class migration



Hello!

just put something like this to each of your persistent classes. 

...
 final static long serialVersionUID = 1L;
...

it will help. if you want to know why - read about java object serialization
in standard java documentation. 

/AAV

On 12-Jun-2001 Stan Pinte wrote:
> hello,
> 
> Exception in thread "main" org.ozoneDB.OzoneInternalExc: 
> java.io.InvalidClassExc
> eption: com.latinia.personalization.persistence.UserDirectoryImpl; Local 
> class n
> ot compatible: stream classdesc serialVersionUID=-54167593766036212 local class
> serialVersionUID=-994083456772284621
>          at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:532)
>          at org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:500)
>          at 
> org.ozoneDB.ExternalDatabase.objectForName(ExternalDatabase.java:752)
> 
> I thought ozone supported schema evolution?
> 
> I am calling db.reloadClasses() after the class change, but no way to make 
> it work,
> 
> thanks a lot,
> 
> Stan.

----------------------------------
E-Mail: Aleksey Aristov <aav@morgana.de>
Date: 12-Jun-2001
Time: 14:34:20

This message was sent by XFMail
----------------------------------