[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please help: InvalidClassException
- To: ozone-users@ozone-db.org
- Subject: Re: Please help: InvalidClassException
- From: Jörg Prante <joerg@7val.com>
- Date: Tue, 22 May 2001 14:04:56 +0200
- Delivered-To: softw7-ozone-db:org-ozone-users@ozone-db.org
- Organization: Sevenval AG e-commerce base technologies
- Reply-To: joerg@7val.com
Eric Richardson wrote:
>I'm not an expert but did you provide a serialVersionUID in your
>source for this class?
>com.sevenval.fit.contract.ozone.OzoneSiteManagerImpl
>If you look at samples/simple you will see this in the AutoImpl.java
>file.
>final static long serialVersionUID = 1L;
>Since Ozone uses serialization, the serialVersionUID needs to be the
>same between the
>stored object and the one used in the runtime which can change after
>compilation if it is not specified in the class.
I did this in OzoneSiteManagerImpl:
protected static long serialVersionUID = 1L;
Still I wonder if this UID must be declared as 'final static'. I will try and
see again.
Jörg
--
Jörg Prante
Sevenval AG (HRB 32757) e-business marketing technologies
D-50667 Köln . Alter Markt 36-42
Fon +49 221 65 00 70 . Fax +49 221 42 49 891 . Mobile +49 175 466 19 18
http://www.sevenval.de . joerg@7val.com