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

Not handled NullPointerException while creating key manager and trustManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.1
    • 3.5.4, 3.6.0
    • server
    • None

    Description

      Not handled NullPointerException while creating key manager and trustManager:-

      2016-09-14 13:35:23,488 [myid:1] - ERROR [CommitProcWorkThread-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.checkACL(PrepRequestProcessor.java:319)
      at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:324)
      at org.apache.zookeeper.server.quorum.CommitProcessor$CommitWorkRequest.doWork(CommitProcessor.java:296)
      at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:162)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      at org.apache.zookeeper.common.X509Util.createKeyManager(X509Util.java:113)
      ... 10 more
      2016-09-14 13:35:23,489 [myid:1] - ERROR [CommitProcWorkThread-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.checkACL(PrepRequestProcessor.java:319)
      at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:324)
      at org.apache.zookeeper.server.quorum.CommitProcessor$CommitWorkRequest.doWork(CommitProcessor.java:296)
      at org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:162)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      at org.apache.zookeeper.common.X509Util.createTrustManager(X509Util.java:143)
      ... 10 more

      Attachments

        Issue Links

          Activity

            People

              maoling Ling Mao
              rakeshsingh Rakesh Kumar Singh
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: