zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andor Molnar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3165) Java 10: X509UtilTest.testCreateSSLContextWithoutTrustStorePassword fails
Date Fri, 12 Oct 2018 11:59:00 GMT
Andor Molnar created ZOOKEEPER-3165:
---------------------------------------

             Summary: Java 10: X509UtilTest.testCreateSSLContextWithoutTrustStorePassword
fails
                 Key: ZOOKEEPER-3165
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3165
             Project: ZooKeeper
          Issue Type: Bug
          Components: tests
    Affects Versions: 3.5.5
            Reporter: Andor Molnar
            Assignee: Andor Molnar


*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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message