Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.5
Description
Error Message
Failed to create TrustManager
Stacktrace
org.apache.zookeeper.common.X509Exception$SSLContextException: Failed to create TrustManager
at org.apache.zookeeper.common.X509Util.createSSLContext(X509Util.java:210)
at org.apache.zookeeper.common.X509Util.createSSLContext(X509Util.java:163)
at org.apache.zookeeper.common.X509Util.getDefaultSSLContext(X509Util.java:147)
at org.apache.zookeeper.common.X509UtilTest.testCreateSSLContextWithoutTrustStorePassword(X509UtilTest.java:184)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:79)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: org.apache.zookeeper.common.X509Exception$TrustManagerException: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at org.apache.zookeeper.common.X509Util.createTrustManager(X509Util.java:299)
at org.apache.zookeeper.common.X509Util.createSSLContext(X509Util.java:207)
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
at java.base/java.security.cert.PKIXParameters.<init>(PKIXParameters.java:157)
at java.base/java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:130)
at org.apache.zookeeper.common.X509Util.createTrustManager(X509Util.java:274)
Attachments
Issue Links
- links to