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

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

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

   > > @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 messages 
would have helped to troubleshoot this issue quicker than we took.
   > > I am adding these changes just to help others to trouble-shoot the issue 
quicker. And this issue got fixed by building with proper maven version. And, 
as we dont have existing Unit test suite for this issue we could not find it by 
running Testsuites.
   > > But we tested the changes by creating the gateway-server.jar again with 
wrong maven config and validated if the new changes are reflected or not.
   > 
   > Interesting. It seems to me that we should also address the NPE itself, 
right? A null check and proper error message would help debug there as well - 
don't you think?
   
   Yes I correct!!. 




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

    Worklog Id:     (was: 923783)
    Time Spent: 1h 10m  (was: 1h)

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

Reply via email to