added debug statement instead of swallowing
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 8 Jun 2007 10:22:50 +0000 (10:22 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 8 Jun 2007 10:22:50 +0000 (10:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@545470 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioBlockingSelector.java
java/org/apache/tomcat/util/net/NioEndpoint.java

index d5a0f36..84b45aa 100644 (file)
@@ -288,9 +288,11 @@ public class NioBlockingSelector {
                     }catch ( NullPointerException x ) {
                         //sun bug 5076772 on windows JDK 1.5
                         if (selector==null) throw x;
+                        if ( log.isDebugEnabled() ) log.debug("Possibly encountered sun bug 5076772 on windows JDK 1.5",x);
                         continue;
                     } catch ( CancelledKeyException x ) {
                         //sun bug 5076772 on windows JDK 1.5
+                        if ( log.isDebugEnabled() ) log.debug("Possibly encountered sun bug 5076772 on windows JDK 1.5",x);
                         continue;
                     } catch (Throwable x) {
                         log.error("",x);
index 8c1ce1e..b246c53 100644 (file)
@@ -1418,10 +1418,12 @@ public class NioEndpoint {
                         }
                     } catch ( NullPointerException x ) {
                         //sun bug 5076772 on windows JDK 1.5
+                        if ( log.isDebugEnabled() ) log.debug("Possibly encountered sun bug 5076772 on windows JDK 1.5",x);
                         if ( wakeupCounter == null || selector == null ) throw x;
                         continue;
                     } catch ( CancelledKeyException x ) {
                         //sun bug 5076772 on windows JDK 1.5
+                        if ( log.isDebugEnabled() ) log.debug("Possibly encountered sun bug 5076772 on windows JDK 1.5",x);
                         if ( wakeupCounter == null || selector == null ) throw x;
                         continue;
                     } catch (Throwable x) {