> com.google.gwt.user.client.rpc.XsrfTokenService.getNewXsrfToken()'
> threw an unexpected exception:
> com.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC token
> (Session cookie is not set or empty! Unable to generate XSRF cookie)
What do these show? Have you tried logging the error?
> public void onFailure(Throwable caught) {
> try {
> throw caught;
> } catch (RpcTokenException e) {
> // Can be thrown for several reasons:
> // - duplicate session cookie, which may be a sign
> // of a cookie
> // overwrite attack
> // - XSRF token cannot be generated because session
> // cookie isn't
> // present
> } catch (Throwable e) {
> // unexpected
> }
> }
> });
> }
Do you have gwt-dev.jar in your classpath. I didn't and was seeing
and unexpected error when it couldn't generate the token for as the
needed class wasn't found. Not sure if that is your problem or not.
Shawn