diff options
author | Congcong Peng <peng.congcong@zte.com.cn> | 2018-03-28 16:42:37 +0800 |
---|---|---|
committer | Congcong Peng <peng.congcong@zte.com.cn> | 2018-03-28 16:42:37 +0800 |
commit | d7cc33ca9d96dc4548f67c6a4b759f3ce1df70aa (patch) | |
tree | 9cfbc4a8fa8e406beec42c36c6718a16e8b01e56 /holmes-actions/src/main/java/org | |
parent | b431789c8c1c84433ecb639e7bcecb3e85ac7690 (diff) |
Modify bug
Issue-ID: HOLMES-127
Change-Id: I041f2be33d841b8e16d0ab16ffd9b02638c6bd25
Signed-off-by: Congcong Peng <peng.congcong@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main/java/org')
-rw-r--r-- | holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java b/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java index a2c4852..54c5e7d 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/utils/HttpsUtils.java @@ -70,7 +70,7 @@ public class HttpsUtils { } }); sslConnectionSocketFactory = new SSLConnectionSocketFactory(sslContextBuilder.build(), - new String[]{"SSLv2Hello", "SSLv3", "TLSv1", "TLSv1.2"}, null, + new String[]{"SSLv3", "TLSv1", "TLSv1.2"}, null, NoopHostnameVerifier.INSTANCE); Registry<ConnectionSocketFactory> registry = RegistryBuilder.<ConnectionSocketFactory>create() .register(HTTP, new PlainConnectionSocketFactory()) @@ -205,7 +205,8 @@ public class HttpsUtils { try { httpResponse = httpClient.execute(httpRequest); } catch (Exception e) { - throw new CorrelationException("Failed to get data from server"); + e.printStackTrace(); + throw new CorrelationException("Failed to get data from server" ,e); } finally { if (httpRequest != null) { httpRequest.releaseConnection(); |