When trying to get some data on my Android client from my web service (running on the application) using this code
ClientResource cr = new ClientResource("https://myapp.appspot.com/restlet/service/");
IServiceResource res = cr.wrap(IServiceResource.class);
m_Services = res.getServices();
I get this error:
05-20 08:30:15.406: ERROR/AndroidRuntime(31767): Caused by: Communication Error (1001) - Could not change the mode after the initial handshake has begun.
I have org.restlet.ext.ssl.jar for https support and I use this line to add a client
Engine.getInstance().getRegisteredClients().add(new HttpsClientHelper(null));
this is the closest I came to receive https: // calls to work since I moved to restlet 2.1m4 (moved because I needed the Buffering entity ..)
Any ideas? Any other information I have to provide?
source
share