Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3165

Java 9: X509UtilTest.testCreateSSLContextWithoutTrustStorePassword fails

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              andor Andor Molnar
              andor Andor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m