org.apache.http.NoHttpResponseException
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相关推荐
- 【异常(待解决)】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 ...
- 【异常(待解决)】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)[ ...
- 出现org.apache.http.NoHttpResponseException
摘要: spring resttemplate使用httpclient4.4 连接池,出现org.apache.http.NoHttpResponseException: 10.0.0.25:8080 ...
- org.apache.http.NoHttpResponseException: xxx.xxx.xxx:80 failed to respond
1,出现场景:微信回调函数访问后发送模板消息,之前项目中使用的http的post请求没有问题,然后复制在新项目中,就报org.apache.http.NoHttpResponseException错误 ...
- org.apache.http.NoHttpResponseException: failed to respond-服务端响应异常
异常现象 多次上传文件时,偶尔会出现一次failed to respond异常,但是重试一次又正常了. 错误日志 原因分析 服务端keep-alive超时断开连接 spring resttemplat ...
- JMeter: org.apache.http.NoHttpResponseException
https://stackoverflow.com/questions/25132655/the-target-server-failed-to-respond-jmeter I faced the ...
- 天龙八部凤鸣镇目标服务器无法响应,Jmeter给NoHttpResponseException:目标服务器无法响应错误...
我正在做一个域的性能测试. 我得到Non HTTP response message: The target server failed to respond response message.Jme ...
- apache的HttpClient的默认重试机制
maven <dependency><groupId>org.apache.httpcomponents</groupId><artifactId>ht ...
- Apache Flink写入Clickhouse报错 code: 1002, ip:8123 failed to respond
目录 版本 一.问题 1 问题描述 2 日志 二.解决 解决过程 1 升级驱动jar包版本(无效) 2 修改连接参数(无效) 3 修改服务端参数(有效) 4 修改获取连接方式(todo) 参考资料 版 ...
最新文章
- Webpy 0.3新手指南
- Java char所占用的字节_关于unicode:为什么Java char原语占用2个字节的内存?
- javadoc源码获取
- wuxiu.SqlHelper 2.0 源码下载
- 通过实际的例子,介绍 SAP ABAP 里的 Repository Information System 的使用技巧
- ABAP Pattern usage - define own custom user exit
- python学习-综合练习七(二分查找(递归)、线性查找、插入排序、快速排序、选择排序、冒泡排序、归并排序、堆排序)-实例
- Dubbo(五)之动态配置中心
- 简单描述char(n)、varchar(n)、nchar(n)、nvarchar(n)的区别
- iptables filter表案例/iptables nat表应用
- Java 随心笔记7
- [转帖]win10 .Net Runtime Optimization Service占用大量CPU资源解决方法
- VS2005 解决应用程序配置不正确,程序无法启动问题(小问题,大思想)
- linux 连接存储,在Linux中连接和使用云存储的三种途径
- idea拦截了html中的静态资源,IDEA配置静态资源热加载操作(Springboot修改静态资源不重启)...
- windows xp共享访问提示“拒绝访问”的故障处理步骤
- docker 数据卷 mysql_Docker 数据卷
- win10主题美化(单)
- java 因数分解_Java--分解质因数
- Gossip费氏数列
热门文章
- 【TensorFlow】TensorFlow函数精讲之tf.nn.softmax_cross_entropy_with_logits
- 收藏 | 机器学习领域必知必会的12种概率分布(附Python代码实现)
- 超赞!arXiv论文如何一键链接解读视频,这个浏览器扩展帮你实现
- AAAI 2021 | 用于旋转目标检测的动态锚框学习策略
- 深度学习与TensorFlow:VGG论文复现
- 深度学习(四十三)条件变分自编码器概述
- 渗透测试入门18之信息收集
- 数组对象的filter方法
- BootstrapTable入门Demo
- MySQL笔记(一)创建数据库、创建表、修改表、删除表,以及建立约束