[ 
https://issues.apache.org/jira/browse/KNOX-3043?focusedWorklogId=923613&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-923613
 ]

ASF GitHub Bot logged work on KNOX-3043:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Jun/24 03:39
            Start Date: 16/Jun/24 03:39
    Worklog Time Spent: 10m 
      Work Description: senthh commented on PR #917:
URL: https://github.com/apache/knox/pull/917#issuecomment-2171032184

   > Hi Senthil - thanks for your PR. Are you able to reproduce the NPE in a 
unit test and show that it is fixed? Can you also add more information to the 
PR description, explain how you have tested it, etc? Thanks again!
   
   
   
   > Hi Senthil - thanks for your PR. Are you able to reproduce the NPE in a 
unit test and show that it is fixed? Can you also add more information to the 
PR description, explain how you have tested it, etc? Thanks again!
   
   @lmccay Thank you. I have added more description about root cause of this 
issue in description. We were getting this issue due to improper build of 
gateway-server. and we feel having good exceptional handling and error messges 
would help to troubleshoot this issue quicker than we took.
   
   And I am adding these changes just to help others to troubhleshoot the issue 
quicker. And this issue got fixed by building with proper maven version. 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 923613)
    Time Spent: 0.5h  (was: 20m)

> 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: 0.5h
>  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)

Reply via email to