Tribes should only depend on JULI
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 11 Dec 2010 22:20:10 +0000 (22:20 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 11 Dec 2010 22:20:10 +0000 (22:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1044730 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/membership/McastServiceImpl.java
java/org/apache/catalina/tribes/transport/nio/NioReceiver.java

index a1f200e..18cf688 100644 (file)
@@ -36,7 +36,6 @@ import org.apache.catalina.tribes.MessageListener;
 import org.apache.catalina.tribes.io.ChannelData;
 import org.apache.catalina.tribes.io.XByteBuffer;
 import org.apache.catalina.tribes.util.ExecutorFactory;
-import org.apache.tomcat.util.ExceptionUtils;
 
 /**
  * A <b>membership</b> implementation using simple multicast.
@@ -422,7 +421,12 @@ public class McastServiceImpl
                                     msgservice.messageReceived(data[i]);
                                 }
                             } catch (Throwable t) {
-                                ExceptionUtils.handleThrowable(t);
+                                if (t instanceof ThreadDeath) {
+                                    throw (ThreadDeath) t;
+                                }
+                                if (t instanceof VirtualMachineError) {
+                                    throw (VirtualMachineError) t;
+                                }
                                 log.error("Unable to receive broadcast message.",t);
                             }
                         }
index 16bd00d..14aa37e 100644 (file)
@@ -39,7 +39,6 @@ import org.apache.catalina.tribes.transport.RxTaskPool;
 import org.apache.catalina.tribes.util.StringManager;
 import org.apache.juli.logging.Log;
 import org.apache.juli.logging.LogFactory;
-import org.apache.tomcat.util.ExceptionUtils;
 
 /**
  * @author Filip Hanik
@@ -318,9 +317,14 @@ public class NioReceiver extends ReceiverBase implements Runnable {
                 // ignore is normal at shutdown or stop listen socket
             } catch (java.nio.channels.CancelledKeyException nx) {
                 log.warn("Replication client disconnected, error when polling key. Ignoring client.");
-            } catch (Throwable x) {
-                ExceptionUtils.handleThrowable(x);
-                log.error("Unable to process request in NioReceiver", x);
+            } catch (Throwable t) {
+                if (t instanceof ThreadDeath) {
+                    throw (ThreadDeath) t;
+                }
+                if (t instanceof VirtualMachineError) {
+                    throw (VirtualMachineError) t;
+                }
+                log.error("Unable to process request in NioReceiver", t);
             }
 
         }