Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1851

NPE on startup when Zookeeper Remote Alias Service is configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • Server
    • None

    Description

      When ZK remote alias service is configured Knox fails to start with the following NPE

      2019-04-09 16:34:47,894 FATAL knox.gateway (GatewayServer.java:main(177)) - Failed to start gateway: java.lang.NullPointerException
      java.lang.NullPointerException
          at org.apache.knox.gateway.services.security.impl.ZookeeperRemoteAliasService.ensureEntry(ZookeeperRemoteAliasService.java:120)
          at org.apache.knox.gateway.services.security.impl.ZookeeperRemoteAliasService.ensureEntries(ZookeeperRemoteAliasService.java:408)
          at org.apache.knox.gateway.services.security.impl.ZookeeperRemoteAliasService.init(ZookeeperRemoteAliasService.java:326)
          at org.apache.knox.gateway.services.security.impl.RemoteAliasService.init(RemoteAliasService.java:260)
          at org.apache.knox.gateway.services.DefaultGatewayServices.init(DefaultGatewayServices.java:91)
          at org.apache.knox.gateway.GatewayServer.main(GatewayServer.java:168)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:68)
          at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39)
          at org.apache.knox.gateway.launcher.Command.run(Command.java:99)
          at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:75)
          at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:52)
      
      

      Attachments

        1. KNOX-1851.001.patch
          3 kB
          Sandeep More

        Issue Links

          Activity

            People

              smore Sandeep More
              smore Sandeep More
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 40m
                  40m