在调用CloseableHttpClient时抛的异常,求大神指点

太黑_thj 发布于 2016/09/23 18:01
阅读 230
收藏 0
org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    at com.impression.util.HttpRequest.sendGet(HttpRequest.java:69)
    at com.impression.service.mc.DadaService.getScope(DadaService.java:62)
    at com.impression.service.mc.DadaService.main(DadaService.java:69)
Caused by: org.apache.http.ProtocolException: Target host is not specified
    at org.apache.http.impl.conn.DefaultRoutePlanner.determineRoute(DefaultRoutePlanner.java:70)
    at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:124)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:183)

    ... 5 more

这到底是什么意思,怎么解决,求大神速度支招啊

加载中
返回顶部
顶部