You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Tomi NA <he...@gmail.com> on 2006/05/20 12:37:16 UTC

Re: serialization issue - SOLVED

On 5/20/06, Tomi NA <he...@gmail.com> wrote:

> > private Object readResolve() throws ObjectStreamException {
> >     DataContext dc = DataContext.getThreadDataContext();
> >     return dc == null ? this : dc.localObject(getObjectId(), this);
> > }

This was the problem, right here: in all the confusion, I left the
readResolve access modifier as "private". Changing it to "protected"
makes a world of difference. :)
Thanks for the guidance, Andrus.

t.n.a.