我在localhost中安装了gerrit服务器设置。成功连接后,Web UI已启动。我在“使用Launchpad ID登录”选项中注册了我的gmail ID 它早期工作,但现在它显示错误“提供程序不受支持,或输入错误”。当我尝试登录时我搜索了很多,并找到了一些关于系统中已安装的java中的安全问题的解决方案。我的系统中有Oracle Jdk8而不是OpenJdk。所以我应该切换到Open Jdk。这是来自日志文件的错误日志消息。
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:90)
at sun.security.validator.Validator.getInstance(Validator.java:179)
at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:312)
at sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:171)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:184)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
... 66 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)
... 78 more
答案 0 :(得分:0)
问题已修复!
由于我一直在使用Oracle Java 8,我已经使用以下commnad安装了Open Jdk 7.
sudo apt-get install ca-certificates-java
但是只有当我在gerrit.config文件中更改了java home变量时才解决问题。
javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
现在问题已经解决了..