Subject: An Unexpected I/O exception with AsyncHttpClient
while performing SSL requests

Hi everyone,I was referred to this group and I hope this is the right place and would really appreciate if you could share your opinion with me.

My company works with Play framework and Scala as our backend server. Lately we've been having problems with the server. While making a secured (SSL) request to a remote API, we're getting the exception below. Seems to be a problem regarding to the SSL, but I'm not sure. We had a similar problem a month ago, and setting the flag:

-J-XX:-UseAESIntrinsics -DXX:-UseAESIntrinsics

seemed to help. Now the problem is back.

Some more information: - Play 2.5.9 - Scala 2.11.8 - Server OS: Centos 6.8 - JVM 1.8.0_25

The Exception:

  • AsyncHttpClient-2-4 - 2016-12-21 03:59:17,434 - [debug] - from org.asynchttpclient.netty.handler.HttpHandler - Unexpected I/O exception on channel [id: 0x9ad15e31, L:/[IP_ADDRESS:PORT - R:SERVER/IP_ADDRESS:443] java.lang.NullPointerException: null at java.lang.System.arraycopy(Native Method) at com.sun.crypto.provider.GCTR.reset( at com.sun.crypto.provider.GCTR.doFinal( at com.sun.crypto.provider.GaloisCounterMode.doLastBlock( at com.sun.crypto.provider.GaloisCounterMode.decryptFinal( at com.sun.crypto.provider.CipherCore.finalNoPadding( at com.sun.crypto.provider.CipherCore.doFinal( at com.sun.crypto.provider.AESCipher.engineDoFinal( at javax.crypto.CipherSpi.bufferCrypt( at javax.crypto.CipherSpi.engineDoFinal( at javax.crypto.Cipher.doFinal( at at at at at at at io.netty.handler.ssl.SslHandler.unwrap( at io.netty.handler.ssl.SslHandler.unwrap( at io.netty.handler.ssl.SslHandler.decode( at io.netty.handler.codec.ByteToMessageDecoder.callDecode( at io.netty.handler.codec.ByteToMessageDecoder.channelRead( at at at at$HeadContext.channelRead( at at at at$ at at at at at io.netty.util.concurrent.SingleThreadEventExecutor$ at io.netty.util.concurrent.DefaultThreadFactory$ at

Does anyone have an idea what the problem could be and how can we fix it?

Also, is there any other place you know where I could get help about this topic?

Thanks in advance,


Programming list archiving by: Enterprise Git Hosting