[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andor Molnar resolved ZOOKEEPER-3165.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.5.5

Issue resolved by pull request 668
[https://github.com/apache/zookeeper/pull/668]

> Java 9: 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.5
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> *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)

Reply via email to