[
https://issues.apache.org/jira/browse/KNOX-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461079#comment-16461079
]
ASF subversion and git services commented on KNOX-1288:
-------------------------------------------------------
Commit fc0e59a9cf6eb77ef7f516591d9cdab5d413332f in knox's branch
refs/heads/master from [~pzampino]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=fc0e59a ]
KNOX-1288 - NPE during service discovery
> 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
> Priority: Major
> 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)