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

"이희승 (Trustin Lee)" trustin at gmail.com
Thu Jun 18 08:34:16 EDT 2009


Do I need to keep handshaking making a new connection every time for 20
minutes, or just keep the connection open and keep sending messages?

On 2009-06-18 오후 8:45, Virat Gohil wrote:
> 
> 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


-- 
— Trustin Lee, http://gleamynode.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20090618/0524bcd8/attachment.bin 


More information about the netty-users mailing list