【发布时间】:2011-08-29 10:12:33
【问题描述】:
当尝试使用此代码从我的网络服务(在应用程序引擎上运行)获取我的 android 客户端上的一些数据时
ClientResource cr = new ClientResource("https://myapp.appspot.com/restlet/service/");
IServiceResource res = cr.wrap(IServiceResource.class);
m_Services = res.getServices();
我收到此错误:
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.
我有用于 https 支持的 org.restlet.ext.ssl.jar,我正在使用此行添加客户端
Engine.getInstance().getRegisteredClients().add(new HttpsClientHelper(null));
这是自从我升级到 restlet 2.1m4 以来,我最接近获得 https:// 工作的调用(移动是因为我需要 entityBuffering..)
有什么想法吗? 我还需要分享其他信息吗?
【问题讨论】: