« Return to Thread: TorqueUser loses persistent object during session replication

TorqueUser loses persistent object during session replication

by Declan Shanaghy-3 :: Rate this Message:

Reply to Author | View in Thread

Hello list,
I'm having a slight problem with TorqueUser
session replication in my turbine 2.3.1 app.

When the session is replicated the underlying
persistent object in TorqueUser is lost.

The tempStorage, permStorage and lastAccessDate
fields are all valid but the persistent object is
null, upon first access it is initialized to its
default value which is an empty object.

This causes my app to fail because it is being told the user is
logged in when hasLoggedIn() returns true but the returned user object is
empty.

I have been able to workaround by checking for
user.hasLoggedIn() == true && user.getName() == null
and then reload the TorqueUser into the runData object
just as if the user was logging into the app
but I'd prefer to find a real solution than have to work around this.


The Persistent object and all of its fields are not transient so
the data should be replicated just like everything else?

Does anyone have any idea why this is happening?



Cheers,
Declan Shanaghy


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: TorqueUser loses persistent object during session replication