Expected mime type application/octet-stream but got text/html. <html>

flink58 发布于 2016/05/26 14:23
阅读 1K+
收藏 0
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://192.168.2.230:8983/solr/#/db/documents: Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /solr/admin.html. Reason:
<pre>    HTTP method POST is not supported by this URL</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>


</body>
</html>

加载中
0
我的名子
我的名子
响应头信息不匹配啊。
0
alonelywolf
alonelywolf
solr url不对,http://192.168.2.230:8983/solr/collectionName
0
B
BT王子

我的:HttpSolrServer solrServer2 = new HttpSolrServer(
                    "http://192.168.209.131:8080/solr/mycore");数据通信正常。

返回顶部
顶部