solr异常:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type appl
2017-03-10 14:57
573 查看
在本地搭建了solr,结果报异常:
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html
查资料发现是solrsever的地址出现问题:
原来是:http://localhost:8080/solr/#/collection2
结果发现,需要指定solrcore,并且地址中没有#号
![](https://oscdn.geek-share.com/Uploads/Images/Content/201703/10/a35f68c333099ed31697cc5ebef39972)
就是solr管理页面上的#号需要去掉,像这样:http://localhost:8080/solr/collection2
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html
查资料发现是solrsever的地址出现问题:
原来是:http://localhost:8080/solr/#/collection2
结果发现,需要指定solrcore,并且地址中没有#号
就是solr管理页面上的#号需要去掉,像这样:http://localhost:8080/solr/collection2
相关文章推荐
- org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application
- org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Document contains multiple val
- 关于solr异常:org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http:192.168.0.11/solr/的解决
- solrj使用报错:HttpSolrServer$RemoteSolrException: Expected mime type application/xml but got text/html
- No qualifying bean of type [org.apache.solr.client.solrj.SolrServer] found for dependency: expected
- Noqualifying bean of type [org.apache.solr.client.solrj.SolrServer] is defined:expected single match
- org.apache.solr.client.solrj.SolrServerException: java.net.SocketTimeoutException: Read timed out
- java.lang.UnsupportedClassVersionError: org/apache/solr/client/solrj/SolrServerException
- Org.apache.solr.client.solrj.impl.CloudSolrServer$RouteException:DEF_CONTENT_CHARST 错误解决
- org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection异常解决方案
- Solr 报错:RemoteSolrException: Expected mime type application/octet-stream but got text/html
- 使用android-async-http下载图片时出现org.apache.http.client.HttpResponseException: Content-Type not allowed的错误
- solr实例代码 import org.apache.solr.client.solrj.SolrServer
- Subversion代码提交中的org.apache.subversion.javahl.ClientException: svn: E200007: Commit failed异常解决
- hadoop异常:虚拟机上搭建分布式集群org.apache.hadoop.ipc.Client: Retrying connect to server
- android异常解决:org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1 refused
- Solr4.2迁移到新项目下异常:java.lang.NoSuchMethodError: org.apache.http.conn.scheme.Scheme.<init>
- 碰到异常记录-------------Svn:org.apache.subversion.javahl.ClientException
- HDFS超租约异常总结(org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException)