java.lang.IllegalStateException: Channel closed before HTTP/2 preface completed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Daniel Natic, 1 year ago
Channel closed before HTTP/2 preface completed.
via GitHub by hardersen
, 1 year ago
Channel closed before HTTP/2 preface completed.
via Google Groups by hrishikesh rajpathak, 1 year ago
Channel closed before HTTP/2 preface completed.
via GitHub by rishiquinto
, 1 year ago
Channel closed before HTTP/2 preface completed.
via GitHub by ddrachau
, 1 year ago
Channel closed before HTTP/2 preface completed.
via GitHub by mobilesoftsmith
, 1 year ago
Channel closed before HTTP/2 preface completed.
java.lang.IllegalStateException: Channel closed before HTTP/2 preface completed.
at com.relayrides.pushy.apns.ApnsClient$2.operationComplete(ApnsClient.java:708)
at com.relayrides.pushy.apns.ApnsClient$2.operationComplete(ApnsClient.java:700)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:683)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:568)
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:407)
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82)
at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1064)
at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:689)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:667)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:611)
at io.netty.channel.DefaultChannelPipeline$HeadContext.close(DefaultChannelPipeline.java:1416)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeCloseNow(ChannelHandlerInvokerUtil.java:133)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeClose(DefaultChannelHandlerInvoker.java:297)
at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:226)
at io.netty.channel.ChannelOutboundHandlerAdapter.close(ChannelOutboundHandlerAdapter.java:71)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeCloseNow(ChannelHandlerInvokerUtil.java:133)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeClose(DefaultChannelHandlerInvoker.java:297)
at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:226)
at io.netty.handler.ssl.SslHandler.closeOutboundAndChannel(SslHandler.java:1250)
at io.netty.handler.ssl.SslHandler.close(SslHandler.java:459)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeCloseNow(ChannelHandlerInvokerUtil.java:133)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeClose(DefaultChannelHandlerInvoker.java:297)
at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:379)
at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:226)
at io.netty.channel.AbstractChannelHandlerContext.close(AbstractChannelHandlerContext.java:185)
at io.netty.channel.DefaultChannelPipeline.close(DefaultChannelPipeline.java:1119)
at io.netty.channel.AbstractChannel.close(AbstractChannel.java:224)
at io.netty.channel.ChannelFutureListener$2.operationComplete(ChannelFutureListener.java:56)
at io.netty.channel.ChannelFutureListener$2.operationComplete(ChannelFutureListener.java:52)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:683)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:604)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:564)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:425)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:286)
at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:339)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:373)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742)
at java.lang.Thread.run(Thread.java:722)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.