solrj IOException occured when talking to server at :* 的解决方案
2017-08-01 15:27
525 查看
往往错误总在我们不经意间发生:
解决方案1:地址输入错误
例:localhost:8983/solr/demo
解析:正确配置方案:http://localhost:8983/solr/demo
部署到生产环境时发生的配置错误,本来以为是代码问题,后来把本机可以用的和生产环境上的进行对比,发现此类错误。
解决方案2:使用了method.post方法。
例:solrServer.query(SolrQuery,METHOD.POST);
解析:因为我们平时总是使用拼接的方式,故,由于超过了post的最大长度没有响应,必然中断talking。(未测试)
方案2参考文章:http://www.cnblogs.com/mecca/p/3922455.html
解决方案1:地址输入错误
例:localhost:8983/solr/demo
解析:正确配置方案:http://localhost:8983/solr/demo
部署到生产环境时发生的配置错误,本来以为是代码问题,后来把本机可以用的和生产环境上的进行对比,发现此类错误。
解决方案2:使用了method.post方法。
例:solrServer.query(SolrQuery,METHOD.POST);
解析:因为我们平时总是使用拼接的方式,故,由于超过了post的最大长度没有响应,必然中断talking。(未测试)
方案2参考文章:http://www.cnblogs.com/mecca/p/3922455.html
相关文章推荐
- 关于solr异常:org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http:192.168.0.11/solr/的解决
- mysqladmin: connect to server at ‘localhost’ failed的解决方案!
- qladmin: connect to server at 'localhost' failed的解决方案!
- MySQL root密码重置报错:mysqladmin: connect to server at 'localhost' failed的解决方案!
- mysqladmin: connect to server at ‘localhost’ failed的解决方案!
- 使用eclipse发布web服务出现"Error occured when adding the module, xxxxxx, to the server"
- Server Tomcat v9.0 Server at localhost failed to start.解决方案
- Server Tomcat v7.0 Server at localhost failed to start.解决方案
- 解决方案Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requ
- 有关Mysql出现Lost connection to MySQL server at 'reading initial communication packet', system error: 0的一个解决方案
- 关于启动Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds的解决方案
- MySQL root密码重置报错:mysqladmin: connect to server at 'localhost' failed的解决方案!
- Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds解决方案
- Server Tomcat Server at localhost failed to start解决方案
- On a new installed FreeBSD server, when you try to SSH to the server as root, you will end up in the
- 启动SQL提示"Can't connect to local MySQL server through socket '/tmp/mysql.sock"参考解决方案
- 解决MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet
- Server Tomcat v7.0 Server at localhost failed to start.
- Android ADB server didn't ACK * failed to start daemon * 简单有效的解决方案
- Tomcat启动失败 提示Server Tomcat v7.0 Server at localhost failed to start.