BasePeer makes sure objects are Serializable and throws out any objects in
the Perm hashtable that are not. It then saves the hashtable.
I think a Hashtable is Serializable, so this would not be your problem. But
then again, it would seem to be the most likely reason:
your object is not passing the
if ( value instanceof Serializable )
test.
John
----- Original Message -----
From: Herv� Guidetti <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, August 30, 2000 1:48 AM
Subject: Re: User perm storage doesn't save !!!??? (Cannot retrieve...)
> In fact, I add an HashTable (containing other hashtable) in the Perm and I
> save it directly after adding.
> I change the getUserFormSession to getUser but always the same problem.
>
> It seems that the saving is all right.
> But when I retieve the perm from storage, the perm contains all the
objects
> it had but not mine.
> I get step by step in the TurbineUser.saveToStorage() code and everything
> seems ok.
>
> May the problem comming from the fact that I had an hashtable and not a
> string, integer, ... ??
>
> Any idea ??
> Herv�
>
> ----- Original Message -----
> From: John McNally <[EMAIL PROTECTED]>
> To: Turbine <[EMAIL PROTECTED]>
> Sent: Tuesday, August 29, 2000 6:08 PM
> Subject: Re: User perm storage doesn't save !!!???
>
>
> > This should work, I think you are going to have to tell us what is
wrong.
> > One thing, you should be able to use data.getUser(), but I don't think
> this
> > is related to your problem.
> >
> > You are not removing the object from "Perm" in between the time you call
> > theUser.saveToStorage() explicitely and when it is called at Logout, are
> > you?
> >
> > John
> >
> > ----- Original Message -----
> > From: Herv� Guidetti <[EMAIL PROTECTED]>
> > To: Turbine <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 29, 2000 2:04 AM
> > Subject: User perm storage doesn't save !!!???
> >
> >
> > > Hi,
> > >
> > > I try to use perm storage of User. I add the object I want to save
like
> > this
> > > :
> > >
> > > data.getUserFromSession().setPerm("theObject",theObj);
> > > theUser.saveToStorage();
> > >
> > >
> > > Everything works still I logout. But when I logout and then login
again
> > (the
> > > same user), the object should be retrieved. But the object is null.
> > > I try to retrieve it with :
> > >
> > > MyObject theObj = (MyObject)
> > data.getUserFromSession().getPerm("theObject");
> > >
> > >
> > > Why ??
> > >
> > > Thanks for your time.
> > > Herv�
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > > Problems?: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> > Problems?: [EMAIL PROTECTED]
> >
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]