Tom Beerbower created AMBARI-12006:
--------------------------------------

             Summary: Provide meaningful error message for URLStreamProvider
                 Key: AMBARI-12006
                 URL: https://issues.apache.org/jira/browse/AMBARI-12006
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower
             Fix For: 2.1.0


Seeing this exception ...
{code}
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:277)
        at 
org.apache.ambari.server.controller.internal.URLStreamProvider.getSSLConnection(URLStreamProvider.java:280)
{code}


Looks like the NPE is due to the fact that {{ssl.trustStore.path}} is not set 
in ambari.properites.   It is expected that {{ssl.trustStore.path}}, 
{{ssl.trustStore.password}} and {{ssl.trustStore.type}} be set for https 
requests through the URLStreamProvider.


The Ambari code should be cleaned up to verify not null and log a meaningful 
error (instead of NPE).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to