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 2018/05/02 13:54:00 UTC

[jira] [Created] (KNOX-1288) NPE during service discovery

Phil Zampino created KNOX-1288:
----------------------------------

             Summary: NPE during service discovery
                 Key: KNOX-1288
                 URL: https://issues.apache.org/jira/browse/KNOX-1288
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 1.0.0
            Reporter: Phil Zampino
            Assignee: Phil Zampino
             Fix For: 1.1.0


Service discovery throws an unhandled NullPointerException under some circumstances where there is no config of the needed type.
{code:java}
(DefaultTopologyService.java:onFileChange(885)) - An error occurred while processing ui.json : java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.knox.gateway.topology.discovery.ambari.AmbariServiceDiscovery.discover(AmbariServiceDiscovery.java:291)
        at org.apache.knox.gateway.topology.simple.SimpleDescriptorHandler.performDiscovery(SimpleDescriptorHandler.java:208)
        at org.apache.knox.gateway.topology.simple.SimpleDescriptorHandler.handle(SimpleDescriptorHandler.java:116)
        at org.apache.knox.gateway.topology.simple.SimpleDescriptorHandler.handle(SimpleDescriptorHandler.java:98)
        at org.apache.knox.gateway.services.topology.impl.DefaultTopologyService$DescriptorsMonitor.onFileChange(DefaultTopologyService.java:860)
        at org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.init(DefaultTopologyService.java:659)
        at org.apache.knox.gateway.services.DefaultGatewayServices.init(DefaultGatewayServices.java:140)
        at org.apache.knox.gateway.GatewayServer.main(GatewayServer.java:153)
        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:70)
        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:69)
        at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46)
{code}



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