If you want the flow to be like that, you would have to code it as callback.extractViewData(rpc.getViewData(null,null,null));
. As is, it tries to call public ViewData getViewData(String accountId, String accountLevel, String ymId, AsyncCallback callback)
, and I'm surprised the program compiles since you say there's no such method. Actually, wait, your interface dictates the existence of this method, which is still the ultimate source of your results here.