diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 30279002dd0f..7dace1746987 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -684,7 +684,9 @@ public boolean events() { SocketChannel sc = socketWrapper.getSocket().getIOChannel(); int interestOps = pe.getInterestOps(); if (sc == null) { - log.warn(sm.getString("endpoint.nio.nullSocketChannel")); + if (log.isDebugEnabled()) { + log.debug(sm.getString("endpoint.nio.nullSocketChannel")); + } socketWrapper.close(); } else if (interestOps == OP_REGISTER) { try { diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 5a501e89cc84..c7944a9e0c9d 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -166,6 +166,11 @@ Avoid a rare NullPointerException when recycling the Http11InputBuffer. (markt) + + Lower the log level to debug for logging an invalid socket channel when + processing poller events for the NIO Connector as this may occur in + normal usage. (markt) +