Hello, This project seems like a great idea and I am giving it a
whirl. I'm running into some problems though, I've created a fresh GWT
Project using the Eclipse plugin and so far the only thing I changed
was having GreetingServiceImpl extend GwtRpcCommLayerServlet and
added the httpcomponents-client-4.0.1 jars to the path.
I then created a simple Main to test:
System.out.println("Testing RPC");
URL url = new URL("
http://127.0.0.1:8888/RPCCommLayer.html?
gwt.codesvr=
127.0.0.1:9997");
GwtRpcCommLayerClient client = new GwtRpcCommLayerClient(url);
GreetingServiceAsync stub = (GreetingServiceAsync)
client.createRemoteServicePojoProxy(GreetingServiceAsync.class);
stub.greetServer("Sean Patrick William Loughran!", new
AsyncCallback<String>()
{
public void onSuccess(String result)
{
System.out.println("Asynch-Call #1 Result->" + result);
}
public void onFailure(Throwable caught)
{
System.out.println("Asynch-Call #1 Failure " + caught);
}
});
System.out.println("Executed Asynch-Call #1 ");
And I get the error:
Testing RPC
Response Error=Content-Type must be 'binary/octet-stream'
Executed Asynch-Call #1
Asynch-Call #1 Failure java.lang.RuntimeException: No valid
GwtRpcCommLayerPojoResponse returned. Check for http errors in log.
I was wondering if anyone had some insight, I feel like this will be
superpowerful once I get it running.