org.apache.http.NoHttpResponseException

异常: org.apache.http.NoHttpResponseException: The target server failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) 

主要原因server端连接已经关闭, client没有接收到关闭的通知



httpClient 4.4中setStaleConnectionCheckEnabled默认变成false了, 之前的版本默认是true
换jar版本要详细测试

  • 解决方法:

    • client请求加重试
    • client起线程主动检查

转载于:https://www.cnblogs.com/yszzu/p/11159945.html

org.apache.http.NoHttpResponseException相关推荐

  1. 【异常(待解决)】org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond...

    一.记录下异常堆栈信息 2019-06-01 10:26:58.246 [http-nio-9850-exec-3] ERROR weixin.popular.client.LocalHttpClie ...

  2. 【异常(待解决)】org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond

    [异常(待解决)]org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond 参考文章: (1)[ ...

  3. 出现org.apache.http.NoHttpResponseException

    摘要: spring resttemplate使用httpclient4.4 连接池,出现org.apache.http.NoHttpResponseException: 10.0.0.25:8080 ...

  4. org.apache.http.NoHttpResponseException: xxx.xxx.xxx:80 failed to respond

    1,出现场景:微信回调函数访问后发送模板消息,之前项目中使用的http的post请求没有问题,然后复制在新项目中,就报org.apache.http.NoHttpResponseException错误 ...

  5. org.apache.http.NoHttpResponseException: failed to respond-服务端响应异常

    异常现象 多次上传文件时,偶尔会出现一次failed to respond异常,但是重试一次又正常了. 错误日志 原因分析 服务端keep-alive超时断开连接 spring resttemplat ...

  6. JMeter: org.apache.http.NoHttpResponseException

    https://stackoverflow.com/questions/25132655/the-target-server-failed-to-respond-jmeter I faced the ...

  7. 天龙八部凤鸣镇目标服务器无法响应,Jmeter给NoHttpResponseException:目标服务器无法响应错误...

    我正在做一个域的性能测试. 我得到Non HTTP response message: The target server failed to respond response message.Jme ...

  8. apache的HttpClient的默认重试机制

    maven <dependency><groupId>org.apache.httpcomponents</groupId><artifactId>ht ...

  9. Apache Flink写入Clickhouse报错 code: 1002, ip:8123 failed to respond

    目录 版本 一.问题 1 问题描述 2 日志 二.解决 解决过程 1 升级驱动jar包版本(无效) 2 修改连接参数(无效) 3 修改服务端参数(有效) 4 修改获取连接方式(todo) 参考资料 版 ...

最新文章

  1. Webpy 0.3新手指南
  2. Java char所占用的字节_关于unicode:为什么Java char原语占用2个字节的内存?
  3. javadoc源码获取
  4. wuxiu.SqlHelper 2.0 源码下载
  5. 通过实际的例子,介绍 SAP ABAP 里的 Repository Information System 的使用技巧
  6. ABAP Pattern usage - define own custom user exit
  7. python学习-综合练习七(二分查找(递归)、线性查找、插入排序、快速排序、选择排序、冒泡排序、归并排序、堆排序)-实例
  8. Dubbo(五)之动态配置中心
  9. 简单描述char(n)、varchar(n)、nchar(n)、nvarchar(n)的区别
  10. iptables filter表案例/iptables nat表应用
  11. Java 随心笔记7
  12. [转帖]win10 .Net Runtime Optimization Service占用大量CPU资源解决方法
  13. VS2005 解决应用程序配置不正确,程序无法启动问题(小问题,大思想)
  14. linux 连接存储,在Linux中连接和使用云存储的三种途径
  15. idea拦截了html中的静态资源,IDEA配置静态资源热加载操作(Springboot修改静态资源不重启)...
  16. windows xp共享访问提示“拒绝访问”的故障处理步骤
  17. docker 数据卷 mysql_Docker 数据卷
  18. win10主题美化(单)
  19. java 因数分解_Java--分解质因数
  20. Gossip费氏数列

热门文章

  1. 【TensorFlow】TensorFlow函数精讲之tf.nn.softmax_cross_entropy_with_logits
  2. 收藏 | 机器学习领域必知必会的12种概率分布(附Python代码实现)
  3. 超赞!arXiv论文如何一键链接解读视频,这个浏览器扩展帮你实现
  4. AAAI 2021 | 用于旋转目标检测的动态锚框学习策略
  5. 深度学习与TensorFlow:VGG论文复现
  6. 深度学习(四十三)条件变分自编码器概述
  7. 渗透测试入门18之信息收集
  8. 数组对象的filter方法
  9. BootstrapTable入门Demo
  10. MySQL笔记(一)创建数据库、创建表、修改表、删除表,以及建立约束