Author: ron.sigal(a)jboss.com
Date: 2010-02-16 23:31:51 -0500 (Tue, 16 Feb 2010)
New Revision: 5709
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/ServerThread.java
Log:
JBREM-1183: doRun() handles java.lang.Error's.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/ServerThread.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2010-02-16
20:38:32 UTC (rev 5708)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2010-02-17
04:31:51 UTC (rev 5709)
@@ -413,6 +413,17 @@
log.error("Worker thread initialization failure", ex);
running = false;
}
+ catch (Error e)
+ {
+ if (!shutdown)
+ {
+ log.error("error", e);
+ }
+ else
+ {
+ log.debug("error", e);
+ }
+ }
// Re-use loop
while (running)
@@ -487,6 +498,18 @@
running = false;
}
}
+ catch (Error e)
+ {
+ if (!shutdown)
+ {
+ log.error("error", e);
+ }
+ else
+ {
+ log.debug("error", e);
+ }
+ }
+
// clear any interruption so that thread can be pooled.
handlingResponse = false;
Thread.interrupted();
Show replies by date