summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java32
1 files changed, 28 insertions, 4 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 9a89962e632..813c6ac8816 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -349,7 +349,13 @@ public final class ThreadPool
{
Ice.SocketException se = new Ice.SocketException();
se.initCause(ex);
- throw se;
+ //throw se;
+ java.io.StringWriter sw = new java.io.StringWriter();
+ java.io.PrintWriter pw = new java.io.PrintWriter(sw);
+ se.printStackTrace(pw);
+ pw.flush();
+ String s = "exception in `" + _prefix + "':\n" + sw.toString();
+ _instance.logger().error(s);
}
return b == (byte)1; // Return true if shutdown has been initiated.
@@ -386,7 +392,13 @@ public final class ThreadPool
{
Ice.SocketException se = new Ice.SocketException();
se.initCause(ex);
- throw se;
+ //throw se;
+ java.io.StringWriter sw = new java.io.StringWriter();
+ java.io.PrintWriter pw = new java.io.PrintWriter(sw);
+ se.printStackTrace(pw);
+ pw.flush();
+ String s = "exception in `" + _prefix + "':\n" + sw.toString();
+ _instance.logger().error(s);
}
}
}
@@ -914,7 +926,13 @@ public final class ThreadPool
Ice.SocketException se = new Ice.SocketException();
se.initCause(ex);
- throw se;
+ //throw se;
+ java.io.StringWriter sw = new java.io.StringWriter();
+ java.io.PrintWriter pw = new java.io.PrintWriter(sw);
+ se.printStackTrace(pw);
+ pw.flush();
+ String s = "exception in `" + _prefix + "':\n" + sw.toString();
+ _instance.logger().error(s);
}
}
}
@@ -961,7 +979,13 @@ public final class ThreadPool
Ice.SocketException se = new Ice.SocketException();
se.initCause(ex);
- throw se;
+ //throw se;
+ java.io.StringWriter sw = new java.io.StringWriter();
+ java.io.PrintWriter pw = new java.io.PrintWriter(sw);
+ se.printStackTrace(pw);
+ pw.flush();
+ String s = "exception in `" + _prefix + "':\n" + sw.toString();
+ _instance.logger().error(s);
}
if(TRACE_SELECT)