Internal Connector Error (1002) - HTTP 1002 (The calling thread timed out while

boQQ_1214 2012-12-20 05:27:07
用Java调用Restlet框架接口时报

Internal Connector Error (1002) - HTTP 1002 (The calling thread timed out while waiting for a response to unblock it

调用代码如下:

ClientResource client1 = new ClientResource(url1);//url1调用地址
Form form1 = new Form();
form1.add("CityID","22");
form1.add("Supplier","HW");
try {
System.out.println(client1.post(form1.getWebRepresentation()).getText());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch(Exception e)
{
// 这里就抛异常,Internal Connector Error (1002) - HTTP 1002 (The calling thread timed out while waiting for a response to unblock it 应该是超时了

System.out.println(e.getMessage());
}
请问有人知道怎么解决么?
...全文
274 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

51,409

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧