From 421fcc043e34ef65bded4190c19fde2af6cc3c04 Mon Sep 17 00:00:00 2001 From: mcherkasov Date: Thu, 14 Jun 2018 17:04:19 +0300 Subject: [PATCH] IGNITE-8799: Web agent hides connection exceptions --- .../java/org/apache/ignite/console/agent/AgentLauncher.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java index 9340417248da1..d8744be6ce01b 100644 --- a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java +++ b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentLauncher.java @@ -114,7 +114,7 @@ public class AgentLauncher { Exception ignore = X.cause(e, SSLHandshakeException.class); if (ignore != null) { - log.error("Failed to establish SSL connection to server, due to errors with SSL handshake."); + log.error("Failed to establish SSL connection to server, due to errors with SSL handshake:", e); log.error("Add to environment variable JVM_OPTS parameter \"-Dtrust.all=true\" to skip certificate validation in case of using self-signed certificate."); System.exit(1); @@ -123,7 +123,7 @@ public class AgentLauncher { ignore = X.cause(e, UnknownHostException.class); if (ignore != null) { - log.error("Failed to establish connection to server, due to errors with DNS or missing proxy settings."); + log.error("Failed to establish connection to server, due to errors with DNS or missing proxy settings.", e); log.error("Documentation for proxy configuration can be found here: http://apacheignite.readme.io/docs/web-agent#section-proxy-configuration"); System.exit(1); @@ -323,6 +323,8 @@ public static void main(String[] args) throws Exception { // Workaround for use self-signed certificate if (Boolean.getBoolean("trust.all")) { + log.info("Trust to all certitificates mode is enabled."); + SSLContext ctx = SSLContext.getInstance("TLS"); // Create an SSLContext that uses our TrustManager