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

NPE is thrown while creating "key manager" and "trust manager"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.5.1
    • 3.5.2, 3.6.0
    • server
    • None
    • Suse 11 sp 3

    Description

      NPE is thrown while creating "key manager" and "trust manager" , even though the zk setup is in non-secure mode

      2015-10-19 12:54:12,278 [myid:2] - ERROR [ProcessThread(sid:2 cport:-1)::X509AuthenticationProvider@78] - Failed to create key manager

      org.apache.zookeeper.common.X509Exception$KeyManagerException: java.lang.NullPointerException

      at org.apache.zookeeper.common.X509Util.createKeyManager(X509Util.java:129)

      at org.apache.zookeeper.server.auth.X509AuthenticationProvider.<init>(X509AuthenticationProvider.java:75)

      at org.apache.zookeeper.server.auth.ProviderRegistry.initialize(ProviderRegistry.java:42)

      at org.apache.zookeeper.server.auth.ProviderRegistry.getProvider(ProviderRegistry.java:68)

      at org.apache.zookeeper.server.PrepRequestProcessor.fixupACL(PrepRequestProcessor.java:952)

      at org.apache.zookeeper.server.PrepRequestProcessor.pRequest2Txn(PrepRequestProcessor.java:379)

      at org.apache.zookeeper.server.PrepRequestProcessor.pRequest(PrepRequestProcessor.java:716)

      at org.apache.zookeeper.server.PrepRequestProcessor.run(PrepRequestProcessor.java:144)

      Caused by: java.lang.NullPointerException

      at org.apache.zookeeper.common.X509Util.createKeyManager(X509Util.java:113)

      ... 7 more

      2015-10-19 12:54:12,279 [myid:2] - ERROR [ProcessThread(sid:2 cport:-1)::X509AuthenticationProvider@90] - Failed to create trust manager

      org.apache.zookeeper.common.X509Exception$TrustManagerException: java.lang.NullPointerException

      at org.apache.zookeeper.common.X509Util.createTrustManager(X509Util.java:158)

      at org.apache.zookeeper.server.auth.X509AuthenticationProvider.<init>(X509AuthenticationProvider.java:87)

      at org.apache.zookeeper.server.auth.ProviderRegistry.initialize(ProviderRegistry.java:42)

      at org.apache.zookeeper.server.auth.ProviderRegistry.getProvider(ProviderRegistry.java:68)

      at org.apache.zookeeper.server.PrepRequestProcessor.fixupACL(PrepRequestProcessor.java:952)

      at org.apache.zookeeper.server.PrepRequestProcessor.pRequest2Txn(PrepRequestProcessor.java:379)

      at org.apache.zookeeper.server.PrepRequestProcessor.pRequest(PrepRequestProcessor.java:716)

      at org.apache.zookeeper.server.PrepRequestProcessor.run(PrepRequestProcessor.java:144)

      Caused by: java.lang.NullPointerException

      at org.apache.zookeeper.common.X509Util.createTrustManager(X509Util.java:143)

      ... 7 more

      Attachments

        1. ZOOKEEPER-2297-09.patch
          7 kB
          Mohammad Arshad
        2. ZOOKEEPER-2297-08.patch
          7 kB
          Mohammad Arshad
        3. ZOOKEEPER-2297-07.patch
          7 kB
          Mohammad Arshad
        4. ZOOKEEPER-2297-06.patch
          5 kB
          Mohammad Arshad
        5. ZOOKEEPER-2297-04.patch
          4 kB
          Mohammad Arshad
        6. ZOOKEEPER-2297-03.patch
          2 kB
          Mohammad Arshad
        7. ZOOKEEPER-2297-02.patch
          4 kB
          Mohammad Arshad
        8. ZOOKEEPER-2297-01.patch
          4 kB
          Mohammad Arshad

        Activity

          People

            arshad.mohammad Mohammad Arshad
            anushri Anushri
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: