Saturday, August 30, 2014

AsyncCallback's methods are not called after rpc request is made.

I'm attempting to make an RPC request. The request is made successfully on the server, and the output is returned, however neither of my asyncCallback's methods (either onSuccess or onFailure) are called.

This is my code for making the request:

        Console.debug("making request " + request);
        service.execute(request, new AsyncCallback<Result<T>>()
            public void onFailure(Throwable caught)
                Console.debug("In failure " + caught);

            public void onSuccess(Result<T> result)
                Console.debug("In success : " + result.getTarget() );
                callback.success( result );
                cache.put(request, result);
        Console.debug("made request " + request);

When this is run, this is the output that I see in my browser console:

Making request
made request
XHR finished loading: POST "http://localhost:8081/MyModule/myService". 

In my server logs, I see a log indicating that a successful result was sent, and if I check the output in chrome's console, I see this:


I assume this means the request was made OK, but neither my onSuccess nor onFailure methods are being called.

Anyone got any ideas? I've been using this exact same code on other sites, where it works without issue. On this particular site, its not working.

I'm testing in sdm mode on 2.6.1

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment