gpt4 book ai didi

Solr 4.2.1 SSLinitializationException

转载 作者:行者123 更新时间:2023-12-04 17:36:52 25 4
gpt4 key购买 nike

升级到 后Solr 4.2.1 ,将 Solr war 文件部署到 GlassFish 版本 3.1.1 会导致以下错误:

    2013-04-09 10:45:06,144 [main] ERROR org.apache.solr.servlet.SolrDispatchFilter - Could not start Solr. Check solr/home property and the logs
2013-04-09 10:45:06,224 [main] ERROR org.apache.solr.core.SolrCore - null:org.apache.http.conn.ssl.SSLInitializationException: Failure initializing default system SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:368)
at org.apache.http.conn.ssl.SSLSocketFactory.getSystemSocketFactory(SSLSocketFactory.java:204)
at org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault(SchemeRegistryFactory.java:82)
at org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:118)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:466)
at org.apache.solr.client.solrj.impl.HttpClientUtil.setMaxConnections(HttpClientUtil.java:179)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
at java.security.KeyStore.load(KeyStore.java:1214)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:281)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:366)
... 50 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)
... 54 more

似乎人们在使用 Solr 4.2 版时遇到了这个问题,并且错误修复版本 4.2.1 应该修复它(?)。任何指针将不胜感激。

最佳答案

前几天有同样的问题。通过降级到 solr 4.1.0 解决了这个问题。但是有一个解决方案(再次通过谷歌搜索我个人众所周知的搜索词找到它;)只需添加两个 JVM 选项。开始 glassfish:

asadmin start-domain

并输入:
asadmin create-jvm-options -- -Djavax.net.ssl.keyStorePassword=changeit
asadmin create-jvm-options -- -Djavax.net.ssl.trustStorePassword=changeit

不要忘记重新启动 glassfish:
asadmin restart-domain

为自己尝试过,效果很好。显然,这只有在您以前从未更改过这些密码时才有效。

关于Solr 4.2.1 SSLinitializationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15906842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com