Author: ron.sigal(a)jboss.com
Date: 2010-02-16 23:41:48 -0500 (Tue, 16 Feb 2010)
New Revision: 5712
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java
Log:
JBREM-1183: doRun() handles java.lang.Error's.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2010-02-17
04:41:09 UTC (rev 5711)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/socket/ServerThread.java 2010-02-17
04:41:48 UTC (rev 5712)
@@ -559,6 +559,17 @@
log.debug(this + " exception occurred during first invocation",
ex);
}
}
+ catch (Error e)
+ {
+ if (!shutdown)
+ {
+ log.error("error", e);
+ }
+ else
+ {
+ log.debug("error", e);
+ }
+ }
// Re-use loop
while (running)
@@ -644,6 +655,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.
Thread.interrupted();
}