It seemed to be a problem with setting (.option b ChannelOption/SO_BACKLOG 100). if i remove that, it works fine..
On Tuesday, March 12, 2013 3:42:15 PM UTC+2, shlomi...@gmail.com wrote:I am trying to run the echo example (rewritten in clojure) and i get "channel not registered to an event loop".this is the bootstrap object printed out:#<ServerBootstrap ServerBootstrap(group: NioEventLoopGroup, channelFactory: NioServerSocketChannel.class, options: {SO_BACKLOG=100}, childGroup: NioEventLoopGroup, childHandler: index_server.netty.proxy$io.netty.channel.ChannelInitializer$0@6094cae2)>here is the stack trace:Exception in thread "main" java.lang.IllegalStateException: channel not registered to an event loopat io.netty.channel.AbstractChannel.eventLoop(AbstractChannel.java:159)at io.netty.channel.nio.AbstractNioChannel.eventLoop(AbstractNioChannel.java:105)at io.netty.channel.nio.AbstractNioChannel.eventLoop(AbstractNioChannel.java:41)at io.netty.channel.DefaultChannelHandlerContext.executor(DefaultChannelHandlerContext.java:492)at io.netty.channel.DefaultChannelHandlerContext.newPromise(DefaultChannelHandlerContext.java:1652)at io.netty.channel.DefaultChannelHandlerContext.close(DefaultChannelHandlerContext.java:1100)at io.netty.channel.DefaultChannelPipeline.close(DefaultChannelPipeline.java:1005)at io.netty.channel.AbstractChannel.close(AbstractChannel.java:230)at io.netty.bootstrap.ServerBootstrap.doBind(ServerBootstrap.java:152)at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:262)at io.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:46)at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:237)at io.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:46)at test.netty$_main.invoke(netty.clj:42)at clojure.lang.Var.invoke(Var.java:411)...What silly thing am i missing?
--
---
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
---
You received this message because you are subscribed to a topic in the Google Groups "Netty discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/netty/mcGswAZ5NeQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to netty+un...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
I would prefer to keep them private to be honest as the are not meant to be instanced by users. Or we maybe could do public with package private constructor
I would prefer to keep them private to be honest as the are not meant to be instanced by users. Or we maybe could do public with package private constructor
I think turning them into public classes with package private constructor could solve this issue, but thats a road i am yet to take.. ill try that soon..
Why this can't be fixed in clojure?
--
So to make it clear we can not use package private classes and expose them via interfaces ?
Bye,
Norman
--