diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxn.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxn.java index d35cf97edad..dc185fb8f8f 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxn.java +++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/NIOServerCnxn.java @@ -566,7 +566,9 @@ private boolean readLength(SelectionKey k) throws IOException { throw new IOException("Len error. " + "A message from " + this.getRemoteSocketAddress() + " with advertised length of " + len + " is either a malformed message or too large to process" - + " (length is greater than jute.maxbuffer=" + BinaryInputArchive.maxBuffer + ")"); + + " (length is greater than jute.maxbuffer=" + BinaryInputArchive.maxBuffer + ")." + + " Note: If the length appears unusually large," + + " this may be a TLS/SSL connection attempt on a non-secure port."); } if (!isZKServerRunning()) { throw new IOException("ZooKeeperServer not running");