Failed to register an accepted channel

1,287 views
Skip to first unread message

Noam Guy

unread,
Nov 15, 2015, 2:20:01 AM11/15/15
to vert.x
Hi Everyone :-)

Can anyone enlighten me regarding this error? I get it only while running tests (maven)

I use Vertx 3.1.0

[WARN ] 2015-11-15 09:00:44,331 io.netty.bootstrap.ServerBootstrap - Failed to register an accepted channel: [id: 0xeca3fb10, 0.0.0.0/0.0.0.0:1234]
java.lang.IllegalStateException
at io.vertx.core.net.impl.VertxEventLoopGroup.next(VertxEventLoopGroup.java:45)
at io.vertx.core.net.impl.VertxEventLoopGroup.register(VertxEventLoopGroup.java:61)
at io.netty.bootstrap.ServerBootstrap$ServerBootstrapAcceptor.channelRead(ServerBootstrap.java:252)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)

Thanks!

Noam Guy

unread,
Nov 16, 2015, 8:37:54 AM11/16/15
to vert.x
Any idea anyone?

Asher Tarnopolski

unread,
Nov 17, 2015, 3:53:42 AM11/17/15
to vert.x
try to post more info: a gist of the code you are testing when this is thrown, the test class, etc. 

Boris Churzin

unread,
May 30, 2016, 9:06:05 PM5/30/16
to vert.x
Funnily enough, we got it again...


On Sunday, November 15, 2015 at 9:20:01 AM UTC+2, Noam Guy wrote:

Julien Viet

unread,
May 31, 2016, 3:22:35 AM5/31/16
to ve...@googlegroups.com
this error happens when the acceptor thread selects an event loop to handle the connection and there is no event loop registered.

it seems it could happen when an http server is shutdown (race condition)

can you provide a reproducer ?

-- 
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/adc0cbf1-815c-4049-b87b-db64a4c043e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages