ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12006) Provide meaningful error message for URLStreamProvider
Date Sat, 20 Jun 2015 03:07:02 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-12006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14594311#comment-14594311
] 

Hudson commented on AMBARI-12006:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #2952 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2952/])
AMBARI-12006 - Provide meaningful error message for URLStreamProvider (tbeerbower) (tbeerbower:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=cf842a05a7de4e6755e2aaef03eb36052495a824)
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/URLStreamProvider.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/URLStreamProviderTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java


> 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)

Mime
View raw message