modules/common/cassandra-installer/src/main/java/org/rhq/storage/installer/StorageInstaller.java
| 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit e0e11c053a3b4c0cfc2625a7fa9ae19b1caaa5fd
Author: Stefan Negrea <snegrea(a)redhat.com>
Date: Mon Sep 30 16:37:57 2013 -0500
[BZ 1010265] Add a little more verbiage around unknown host exception; the goal is to
point the user towards documentation and dns settings.
diff --git
a/modules/common/cassandra-installer/src/main/java/org/rhq/storage/installer/StorageInstaller.java
b/modules/common/cassandra-installer/src/main/java/org/rhq/storage/installer/StorageInstaller.java
index 58c04ac..30a51a4 100644
---
a/modules/common/cassandra-installer/src/main/java/org/rhq/storage/installer/StorageInstaller.java
+++
b/modules/common/cassandra-installer/src/main/java/org/rhq/storage/installer/StorageInstaller.java
@@ -34,6 +34,7 @@ import java.net.BindException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
+import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -941,7 +942,12 @@ public class StorageInstaller {
CommandLine cmdLine = parser.parse(installer.getOptions(), args);
int status = installer.run(cmdLine);
System.exit(status);
- } catch (ParseException e) {
+ } catch (UnknownHostException unknownHostException) {
+ installer.log
+ .error("Failed to resolve requested binding address. Please check
the installation instructions and host DNS settings. "
+ + unknownHostException.getMessage());
+ throw unknownHostException;
+ } catch (ParseException parseException) {
installer.printUsage();
System.exit(STATUS_SHOW_USAGE);
}
Show replies by date