diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-02-13 23:27:04 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-02-13 23:27:04 +0000 |
commit | 2a261a5de6548cb08f72f9afcb287feadfdda4dd (patch) | |
tree | 7a6517ce40845e54f162689f2b538c3e43cfc4cb /java/src/IceInternal/IncomingConnectionFactory.java | |
parent | ThreadPool bug fixes, cleanup (diff) | |
download | ice-2a261a5de6548cb08f72f9afcb287feadfdda4dd.tar.bz2 ice-2a261a5de6548cb08f72f9afcb287feadfdda4dd.tar.xz ice-2a261a5de6548cb08f72f9afcb287feadfdda4dd.zip |
align with stable_32 in C++
Diffstat (limited to 'java/src/IceInternal/IncomingConnectionFactory.java')
-rw-r--r-- | java/src/IceInternal/IncomingConnectionFactory.java | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/java/src/IceInternal/IncomingConnectionFactory.java b/java/src/IceInternal/IncomingConnectionFactory.java index eb261376ebf..79a4900df86 100644 --- a/java/src/IceInternal/IncomingConnectionFactory.java +++ b/java/src/IceInternal/IncomingConnectionFactory.java @@ -122,14 +122,14 @@ public class IncomingConnectionFactory extends EventHandler /* catch (IceSecurity.SecurityException ex) { - warning(ex); + // TODO: bandaid. Takes care of SSL Handshake problems during + // creation of a Transceiver. Ignore, nothing we can do here. } */ catch (Ice.SocketException ex) { // TODO: bandaid. Takes care of SSL Handshake problems during // creation of a Transceiver. Ignore, nothing we can do here. - warning(ex); } catch (Ice.TimeoutException ex) { @@ -137,7 +137,10 @@ public class IncomingConnectionFactory extends EventHandler } catch (Ice.LocalException ex) { - warning(ex); + if (_warn) + { + warning(ex); + } setState(StateClosed); } @@ -346,12 +349,12 @@ public class IncomingConnectionFactory extends EventHandler private void warning(Ice.LocalException ex) { - if (_warn) - { - String s = "connection exception:\n" + ex + '\n' + - _acceptor.toString(); - _instance.logger().warning(s); - } + java.io.StringWriter sw = new java.io.StringWriter(); + java.io.PrintWriter pw = new java.io.PrintWriter(sw); + ex.printStackTrace(pw); + pw.flush(); + String s = "connection exception:\n" + sw.toString() + '\n' + _acceptor.toString(); + _instance.logger().warning(s); } private Endpoint _endpoint; |