You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Phil Zampino (JIRA)" <ji...@apache.org> on 2019/04/10 14:08:00 UTC

[jira] [Comment Edited] (KNOX-1851) NPE on startup when Zookeeper Remote Alias Service is configured

    [ https://issues.apache.org/jira/browse/KNOX-1851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814471#comment-16814471 ] 

Phil Zampino edited comment on KNOX-1851 at 4/10/19 2:07 PM:
-------------------------------------------------------------

[~krisden] I believe the service is init'd in gateway services, no?

https://github.com/apache/knox/blob/master/gateway-server/src/main/java/org/apache/knox/gateway/services/DefaultGatewayServices.java#L80

 


was (Author: pzampino):
[~krisden] I believe the service is init'd in gateway services, no?

> NPE on startup when Zookeeper Remote Alias Service is configured
> ----------------------------------------------------------------
>
>                 Key: KNOX-1851
>                 URL: https://issues.apache.org/jira/browse/KNOX-1851
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.3.0
>            Reporter: Sandeep More
>            Priority: Major
>             Fix For: 1.3.0
>
>
> When ZK remote alias service is configured Knox fails to start with the following NPE
> {code:java}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)