技术文章 - CS337515
Windchill PDMlink 日志中抛出了与索引搜索 Solr 服务器相关的“错误 401 未授权”错误。
已修改: 12-Nov-2025
适用于
- Windchill PartsLink 11.2 to 13.1
- Windchill PDMLink 11.0 to 13.1
说明
- Windchill 启动时出现Solr错误,方法服务器日志文件中会抛出“错误 401 未授权”错误
- 即使
Index Server Down索引服务器已关闭”的警告。 - 尽管已启动索引搜索服务器,但分类结构无法在分类资源管理器中正常加载。
- 日志中抛出了与索引搜索 Solr 服务器相关的错误“错误 401 未授权”。
- 方法服务器出错:
wt.index.StandardIndexPolicyManager - Exception while pinging the index server org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://xxx.xx.xx:8085/solr/wblib: 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 401 Unauthorized</title> </head> <body><h2>HTTP ERROR 401</h2> <p>Problem accessing /solr/wblib/admin/ping. Reason: <pre>Unauthorized</pre></p> </body> </html>
- 无法进行分类搜索,用户界面显示“索引服务器已关闭”,但索引服务器实际上已启动并运行,没有任何错误。
- 无法使用关键字执行高级搜索,用户界面中显示以下错误。
Index Server Down The index search function is not available, an attribute search has been used. The search results may not contain all of the objects you expected. Please contact your Windchill system administrator - 在搜索分类节点时出现错误“索引服务器似乎已关闭,请联系您的 Windchill 系统管理员”。
- MethodServer 日志报告错误:
ERROR : wt.index.StandardIndexPolicyManager - Exception while pinging the index server org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://XXX:8085/solr/wblib: 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 401 Unauthorized</title> </head> <body><h2>HTTP ERROR 401</h2> <p>Problem accessing /solr/wblib/admin/ping. Reason: <pre>Unauthorized</pre></p> </body> </html> at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:620) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:262) at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:245) at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1274) at wt.index.service.SolrServiceImpl.pingSolr(SolrServiceImpl.java:144) at wt.index.StandardIndexPolicyManager.updateIndexServerStatusCache(StandardIndexPolicyManager.java:509) at wt.index.StandardIndexPolicyManager.access$100(StandardIndexPolicyManager.java:69) at wt.index.StandardIndexPolicyManager$IndexServerStatusManagerTask.run(StandardIndexPolicyManager.java:489) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java
- 批量索引失败,错误信息为“错误 401 未授权”。
- 在修改codebase/WEB-INF/conf/index.solrAuth.properties和<Solr home>\config\solrserver.properties中的密码后,仍然出现 401 错误。
这是文章 337515 的 PDF 版本,可能已过期。最新版本 CS337515