We have a gwt web application and now we are developing the android application for the same web application. In this we are trying to use the server side code of the web application and for that we are using SyncProxy (to connect android application with RPC).
My code is :
SyncProxy.setBaseURL("http://192.168.1.87/gwtandroidproject/");
GreetingServiceAsync greetService = SyncProxy.create(GreetingService.class);
CookieManager cm = ((HasProxySettings) greetService).getCookieManager();
greetService.greetServer("123", new AsyncCallback<String>() {
@Override
public void onFailure(Throwable arg0) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(String arg0) {
// TODO Auto-generated method stub
Toast.makeText(mainActivity, arg0, 3000);
}
});
But exception is
09-03 15:45:52.628: E/AndroidRuntime(21080):
Caused by: com.gdevelop.gwt.syncrpc.exception.SyncProxyException:
Error POLICY_NAME_POPULATION. Unable to populate policy names
NOTE: NO USE OF GAE IN THE APPLICATION