log(Level.FINE, "sslMode==PREFER, however non-SSL connection failed as well", ex); log(Level.FINE, "sslMode==ALLOW, however SSL connection failed as well", ex); knownStates.put(hostSpec, HostStatus.ConnectFail); if (hostIter.hasNext()) { log(Level.FINE, "ConnectException occurred while connecting to {0}", cex, hostSpec); knownStates.put(hostSpec, HostStatus.ConnectFail); if (hostIter.hasNext()) { log(Level.FINE, "IOException occurred while connecting to {0}", ioe, hostSpec); knownStates.put(hostSpec, HostStatus.ConnectFail); if (hostIter.hasNext()) { log(Level.FINE, "SQLException occurred while connecting to {0}", se, hostSpec);