[ https://issues.apache.org/jira/browse/KNOX-3043?focusedWorklogId=923610&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-923610 ]
ASF GitHub Bot logged work on KNOX-3043: ---------------------------------------- Author: ASF GitHub Bot Created on: 15/Jun/24 20:31 Start Date: 15/Jun/24 20:31 Worklog Time Spent: 10m Work Description: senthh opened a new pull request, #917: URL: https://github.com/apache/knox/pull/917 (It is very **important** that you created an Apache Knox JIRA for this change and that the PR title/commit message includes the Apache Knox JIRA ID!) ## What changes were proposed in this pull request? Added Exceptional handlings to handle NullPointerException thrown while calling loadBuildProperties method and also respective log messages ## How was this patch tested? Tested in local cluster. Please review [Knox Contributing Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow) before opening a pull request. Issue Time Tracking ------------------- Worklog Id: (was: 923610) Remaining Estimate: 0h Time Spent: 10m > NullpointerException in calling loadBuildProperties > --------------------------------------------------- > > Key: KNOX-3043 > URL: https://issues.apache.org/jira/browse/KNOX-3043 > Project: Apache Knox > Issue Type: Bug > Affects Versions: 2.0.0, 1.6.1 > Reporter: Senthil Kumar > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > Getting NullPointerException while calling loadBuildProperties in both > GatewayServer and KnoxCLI > SEVERE: Failed to start gateway: java.lang.NullPointerException > java.lang.NullPointerException > at java.util.Properties$LineReader.readLine(Properties.java:434) > at java.util.Properties.load0(Properties.java:353) > at java.util.Properties.load(Properties.java:341) > at > org.apache.knox.gateway.GatewayServer.loadBuildProperties(GatewayServer.java:306) > at org.apache.knox.gateway.GatewayServer.main(GatewayServer.java:160) > 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) -- This message was sent by Atlassian Jira (v8.20.10#820010)