Failing to create new PoolingHttpClientConnectionManager

前端 未结 3 1130
感情败类
感情败类 2021-01-21 03:31

My program contains the following line, and just hangs at this point, and I\'m not quite sure why.

PoolingHttpClientConnectionManager connectionManager = new Po         


        
相关标签:
3条回答
  • 2021-01-21 04:24

    Do you also have httpcore jar? (version 4.3 as well) I've found that class there.

    0 讨论(0)
  • 2021-01-21 04:28

    Maybe you forgot to include/download HttpCore

    http://hc.apache.org/downloads.cgi

    0 讨论(0)
  • 2021-01-21 04:30

    The org.apache.http.config.Lookup class is not in httpclient-4.3.1.jar. It is in httpcore-4.3.jar.

    If you are not using Maven, to understand the httpclient dependencies, see http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/dependencies.html

    0 讨论(0)
提交回复
热议问题