sometimes when i call an rpc to my app on Google App Engine, an error is thrown. Normally i would just put the error code out with an Window.Alert(), and then go and read the logs and solve the problem..
This time however the error code is simply "0" and nothing is put in the log-files. The code looks like this:
myService.doStuff(new AsyncCallback<Boolean>()
{
@Override
public void onSuccess(Boolean result)
{
if(result)
Window.alert("yay");
else
Window.alert("nay");
}
@Override
public void onFailure(Throwable caught)
{
Window.alert(caught.getMessage());
}
});
Most of the times, i get a yay/nay depending on success, however some rare times i just get a "0".. What is this? :s
The server side code can be anything really, getting/storing in datastore, checking if a user is signed in etc. This happens randomly on most of my RPC-calls.