getting javax.net.ssl.SSLException: illegal change cipher spec msg, state = 6

Virat Gohil virat.gohil at gmail.com
Thu Jun 18 07:45:21 EDT 2009


Hi All,

I am getting the following exception after about 20 minutes of running time
using my server:

 EXCEPTION: javax.net.ssl.SS
LException: illegal change cipher spec msg, state = 6
javax.net.ssl.SSLException: illegal change cipher spec msg, state = 6
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(Unknown Source)
        at javax.net.ssl.SSLEngine.unwrap(Unknown Source)
        at
org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:699)
        at
org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:445)
        at
org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:244)
        at
org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:184)
        at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:87)
        at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:344)
        at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:331)
        at
org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:303)
        at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:255)
        at
org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:176)
        at
org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:49)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)

I am attaching an example server along with this email, the clients may send
any random string with ascii char (0x04) as delimiter.

http://n2.nabble.com/file/n3104250/NioServer.tar.bz2 NioServer.tar.bz2 

Kindly suggest a solution or cause to this issue.

Thanks,

Virat
-- 
View this message in context: http://n2.nabble.com/getting-javax.net.ssl.SSLException%3A-illegal-change-cipher-spec-msg%2C-state-%3D-6-tp3104250p3104250.html
Sent from the Netty User Group mailing list archive at Nabble.com.




More information about the netty-users mailing list