Invocation Exception - unable to initiate the asynchronous service invocation ..

509 views
Skip to first unread message

3rojka

unread,
Jun 1, 2006, 6:09:59 AM6/1/06
to Google Web Toolkit
It says check the network connection.

I have problem with running the application in web mode, but it runs OK
in hosted mode and unfortunatelly it is not the problem with passing
empty string.

To me it seems like the client would not see the servlet url but I can
see it from browser so I should not have problem with browser
connection.
I tryied both Firefox and IE

I have this service

public interface KeywordsService extends RemoteService {

/**
* @gwt.typeArgs <java.lang.String>
*/
public List getBundleList();

}


using here
// service initialization
public ServiceProvider() {
// create async service
asyncService = (KeywordsServiceAsync)
GWT.create(KeywordsService.class);
// set endpoint
ServiceDefTarget endpoint = (ServiceDefTarget) asyncService;

endpoint.setServiceEntryPoint("http://my.server.com:8080/gwt/servlet/KeywordsServiceImpl");
};

calling
// get bundles
ServiceProvider sp = new ServiceProvider();
KeywordsServiceAsync asyncService = sp.getAsyncService();
Window.alert("before rpc call");
asyncService.getBundleList(sp.getBundlesCallback(this));

And it ends up in onFailure of

public AsyncCallback getBundlesCallback (Bundles bundles) {
final Bundles bundlesComp = bundles;
return new AsyncCallback() {
public void onSuccess(Object result) {
List bundlesList = (List)result;
.... process list
}
}

public void onFailure(Throwable caught) {
Window.alert(caught.getMessage());
bundlesComp.setText(1,0,"failed to load bundles list from
server");
caught.printStackTrace();
}
};
}


Plase advice, thanks a milion.

Radek

3rojka

unread,
Jun 1, 2006, 6:41:14 AM6/1/06
to Google Web Toolkit
I forgot to mention that I am pretty confident that the RPC call never
get to the servlet, I am saying the problem is on client side.

3rojka

unread,
Jun 5, 2006, 4:10:12 AM6/5/06
to Google Web Toolkit
I hate to say that but the problem is called Firefox, any idea why.

3rojka

unread,
Jun 5, 2006, 4:26:02 AM6/5/06
to Google Web Toolkit
Reply all
Reply to author
Forward
0 new messages