java.lang.IllegalStateException

Channel closed before HTTP/2 preface completed.

Solutions on the web5251

  • Channel closed before HTTP/2 preface completed.
  • Channel closed before HTTP/2 preface completed.
  • via Google Groups by Petar Petrov, 2 months ago
    Channel closed before HTTP/2 preface completed.
  • Stack trace

    • java.lang.IllegalStateException: Channel closed before HTTP/2 preface completed. at com.relayrides.pushy.apns.ApnsClient$3.operationComplete(ApnsClient.java:467)[pushy-0.9.3.jar:?] at com.relayrides.pushy.apns.ApnsClient$3.operationComplete(ApnsClient.java:459)[pushy-0.9.3.jar:?] at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1058)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:686)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:664)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:607)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.close(DefaultChannelPipeline.java:1276)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:624)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:608)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.ChannelOutboundHandlerAdapter.close(ChannelOutboundHandlerAdapter.java:71)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:624)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:608)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler$8.operationComplete(SslHandler.java:1630)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler$8.operationComplete(SslHandler.java:1619)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultPromise.addListener(DefaultPromise.java:163)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:93)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPromise.addListener(DefaultChannelPromise.java:28)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.safeClose(SslHandler.java:1619)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.closeOutboundAndChannel(SslHandler.java:1430)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.close(SslHandler.java:575)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:624)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:608)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:465)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at com.relayrides.pushy.apns.ApnsClient$1$1.configurePipeline(ApnsClient.java:273)[pushy-0.9.3.jar:?] at io.netty.handler.ssl.ApplicationProtocolNegotiationHandler.userEventTriggered(ApplicationProtocolNegotiationHandler.java:92)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:329)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:315)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:307)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.setHandshakeSuccess(SslHandler.java:1341)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1179)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1041)[netty-handler-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)[netty-codec-4.1.9.Final.jar:4.1.9.Final] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)[netty-codec-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)[netty-transport-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)[netty-common-4.1.9.Final.jar:4.1.9.Final] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)[netty-common-4.1.9.Final.jar:4.1.9.Final] at java.lang.Thread.run(Thread.java:785)[?:1.8.0]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.