# HG changeset patch # User Gilles Duboscq # Date 1386003724 -3600 # Node ID fdc3925a8e7401535da70fe3fa052001946d9103 # Parent 36864a23bc11c7473a0e98047283ee062c21dfd5 IGV display an error message for any exception during port binding diff -r 36864a23bc11 -r fdc3925a8e74 src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java --- a/src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java Mon Dec 02 18:01:14 2013 +0100 +++ b/src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/Server.java Mon Dec 02 18:02:04 2013 +0100 @@ -73,7 +73,7 @@ try { serverSocket = ServerSocketChannel.open(); serverSocket.bind(new InetSocketAddress(curPort)); - } catch (IOException ex) { + } catch (Throwable ex) { NotifyDescriptor message = new NotifyDescriptor.Message("Could not create server. Listening for incoming binary data is disabled.", NotifyDescriptor.ERROR_MESSAGE); DialogDisplayer.getDefault().notifyLater(message); return;