[ 
https://issues.apache.org/jira/browse/RANGER-5338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj resolved RANGER-5338.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.8.0
         Assignee: Shohei Okumiya
       Resolution: Fixed

[~okumin]  - thank you for the fix. The fix is merged in master and ranger-2.8 
branches.

 

master branch: 
https://github.com/apache/ranger/commit/5180245f04a8677b4ffb955325a80d43ccbef561

ranger-2.8 branch: 
https://github.com/apache/ranger/commit/fc34b23acc30570a4b9430a344a940aba18b34b7

> Make XMLUtils's error message more informative
> ----------------------------------------------
>
>                 Key: RANGER-5338
>                 URL: https://issues.apache.org/jira/browse/RANGER-5338
>             Project: Ranger
>          Issue Type: Improvement
>          Components: Ranger
>            Reporter: Shohei Okumiya
>            Assignee: Shohei Okumiya
>            Priority: Major
>             Fix For: 3.0.0, 2.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The current error message is too simple, mainly when the configuration file 
> is found.
>  
> {code:java}
> 09:00:28.608 [main] ERROR org.apache.ranger.plugin.util.XMLUtils -- Error 
> loading : 
> java.lang.IllegalArgumentException: InputStream cannot be null
>  at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:117)
>  at org.apache.ranger.plugin.util.XMLUtils.loadConfig(XMLUtils.java:65)
>  at org.apache.ranger.plugin.util.XMLUtils.loadConfig(XMLUtils.java:49)
>  at 
> org.apache.ranger.server.tomcat.EmbeddedServerUtil.loadRangerConfigProperties(EmbeddedServerUtil.java:46)
>  at 
> org.apache.ranger.server.tomcat.EmbeddedServer.<init>(EmbeddedServer.java:103)
>  at 
> org.apache.ranger.server.tomcat.EmbeddedServer.main(EmbeddedServer.java:95){code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to