Ok I have to revert my last mail, I am still getting the error, I will
investigate the session serialisation tomorrow to see if we have a
problem there.
Werner
Am 12.12.10 12:06, schrieb Werner Punz:
Ok I now removed the encryption entirely, server side state saving also
works like a charm now. I guess if you dont run into the limits of
server side state saving, and googles session limit, which you should
not if you keep the number of things in the session low and also the
depth of the state history then this might be a viable option.
So google was not at fault here, it was my local settings, which just
set the secret not the MAC_SECRET.
But why encryption for server side state saving at all?
Werner
Am 12.12.10 11:40, schrieb Werner Punz:
Hi Leo I noticed I just set the org.apache.myfaces.SECRET not the
MAC_SECRET, there seems to be an error in the GAE docs on our site,
because it does not tell you have to set the MAC_SECRET.
I will give my testing case another try with MAC_SECRET set as well.
Werner
Am 10.12.10 23:40, schrieb Leonardo Uribe:
Hi
One last note, to make client side state saving work try configure
this two
params:
org.apache.myfaces.SECRET
org.apache.myfaces.MAC_SECRET
It is probably that the ViewExpiredException is thrown because you are
not
configured the mac secret.
See http://wiki.apache.org/myfaces/Secure_Your_Application for details.
regards,
Leonardo Uribe
2010/12/10 Leonardo Uribe<[email protected]>
Hi
Is there any way to see the app log? In theory, when a
ViewExpiredException
is thrown, the reason is logged there, but there is not on the browser.
I readed your previous emails related to this one and one possibility
that
comes to my mind is we are storing something on session without
implement
Serializable interface. If that so, as soon as GAE serialize the
session to
disk, that code causes an Exception and when MyFaces try to restore the
state it just has dissapeared (servlet session is invalid, so a new
one is
created and our value in javax.faces.ViewState request parameter is not
found, so a ViewExpiredException is thrown).
The solution if that is the case is check all lines that do something
with
session map and check if it is possible to serialize to disk.
regards,
Leonardo