诡异的异常Cannot retry request with a non-repeatable request entity
来源:互联网 发布:自学素描的软件 编辑:程序博客网 时间:2024/06/05 07:04
越急越乱 越想早走,越让你走不了
场景:
昨晚,使用solrj全量同步更新索引数据……生产环境
肚子饿……家里冰箱中还有半个西瓜…
异常信息如下:
org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://localhost:8080/solr/sdr 404 at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:566) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) at Caused by: org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:867) at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:452) ... 8 moreCaused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed. at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:656) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) ... 12 moreCaused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) at java.net.SocketOutputStream.write(SocketOutputStream.java:159) at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:181) at org.apache.http.impl.io.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:124) at org.apache.http.impl.io.ChunkedOutputStream.write(ChunkedOutputStream.java:181) at org.apache.http.entity.InputStreamEntity.writeTo(InputStreamEntity.java:132) at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:89) at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108) at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:117) ... 14 more
1.首先被HTTP 404 迷惑了一时
2.google查找: Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.
有同学遇到是因为jdk版本错误导致。
fuck,我还真在打包编译时使用了jre7(应该使用jre8)。但,重新打包依然不行…..
3.淡定,淡定…….再次细心查看异常栈信息,发现:
org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:117)
“serialize”序列化…….首先想到服务端和客户端实体Bean相关jar包是否同步更新一致,经确认一致……jdk也一致。
“数据库TINYINT,怎么经过jdbc过变为true和false了?”突然想起开发测试环境时反馈。只是异常信息提示很明确。
生产库,把对应的2个字段TINYINT变为INT…………….TM,就好了
阅读全文
1 0
- 诡异的异常Cannot retry request with a non-repeatable request entity
- 抓包时碰到的问题:the server refused this request because the request entity is in a ......
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- xUtils的retry error, curr request is null问题
- 413 Request Entity Too Large 的解决方法
- 413 Request Entity Too Large 的解决方法
- The current request is not a multipart request异常
- 上传文件失败 Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Non-Blocking Web-Request
- 上传文件异常问题 | 413 Request Entity Too Large
- Android异常-android5.0以上网络请求失败-retry error, curr request is null
- 理解request库的异常
- Retrying requests using request-retry handlers
- xutils retry error, curr request is null
- xutils retry error curr request is null
- description The server refused this request because the request entity is in a format not supported
- 让人迷惑的"Cannot add an entity with a key that is already in use."
- Eureka报异常Cannot execute request on any known server
- Unity 各种特性之用法说明
- 闭包学习笔记
- Netty教程-ChannelHandler
- java struts如何将action替换成html或者do
- test1-addblog
- 诡异的异常Cannot retry request with a non-repeatable request entity
- Android基础--拨打电话两种方式
- 真机调试安卓捕获应用的运行时异常并保存代码
- React创建项目报错Error: EACCES: permission denied, open 'xxx/xxx/.babel.json'
- IE9/IE10使用隐藏iframe异步上传文件问题的解决方案
- ORA-12154: TNS: 无法解析指定的连接标识符
- jQuery:改进导航
- 中国计算机学会CCF推荐国际学术会议和期刊目录-计算机体系结构/并行与分布计算/存储系统
- iReport+mongodb基础并制作简单报表