Details
Description
When try to getEnabledProtocols and getEnabledCipherSuites from SslFilter it returns null. SslFilter allows set setEnabledProtocols and setEnabledCipherSuites. but at the run time it gives the following exceptions.
This may caused because of Mina SslFilter doesn't implement the functionality as SSLServerSocket.
org.apache.mina.util.DefaultExceptionMonitor exceptionCaught
WARNING: Unexpected exception.
org.apache.mina.core.filterchain.IoFilterLifeCycleException: onPreAdd(): ssl:SslFilter in (0x00000002: nio socket, server,
at org.apache.mina.core.filterchain.DefaultIoFilterChain.register(DefaultIoFilterChain.java:279)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.addLast(DefaultIoFilterChain.java:174)
at org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder.buildFilterChain(DefaultIoFilterChainBuilder.java:452)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.addNow(AbstractPollingIoProcessor.java:530)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.handleNewSessions(AbstractPollingIoProcessor.java:503)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$300(AbstractPollingIoProcessor.java:64)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1109)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
Caused by: java.lang.IllegalArgumentException: TLSv1.1
at com.sun.net.ssl.internal.ssl.ProtocolVersion.valueOf(ProtocolVersion.java:114)
at com.sun.net.ssl.internal.ssl.ProtocolList.<init>(ProtocolList.java:36)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.setEnabledProtocols(SSLEngineImpl.java:1719)
at org.apache.mina.filter.ssl.SslHandler.init(SslHandler.java:170)
at org.apache.mina.filter.ssl.SslFilter.onPreAdd(SslFilter.java:417)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.register(DefaultIoFilterChain.java:277)