diff --git a/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java b/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java index 4b6250670c..ef8d07b6e4 100644 --- a/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java +++ b/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java @@ -135,7 +135,7 @@ public class ReferenceCountedOpenSslEngine extends SSLEngine implements Referenc @SuppressWarnings({ "rawtypes", "unused" }) List serverNames = (List) getServerNamesMethod.invoke(parameters); setServerNamesMethod.invoke(parameters, Collections.emptyList()); - } catch (Throwable ingore) { + } catch (Throwable ignore) { sniHostNameClass = null; getAsciiNameMethod = null; getServerNamesMethod = null; diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 5cae86e3d1..78ca3207c8 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -854,8 +854,9 @@ public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH && "com.sun.nio.sctp.SctpChannel".equals(clazz.getSuperclass().getName())) { return true; } - } catch (ClassNotFoundException e) { - // This should not happen just ignore + } catch (Throwable cause) { + logger.debug("Unexpected exception while loading class {} classname {}", + getClass(), classname, cause); } } }