NioWorker unexpected exception in selector loop.

Marc-André Laverdière marcandre.laverdiere at gmail.com
Mon May 16 05:00:01 EDT 2011


Would you please clarify your bug report by telling us which version
of Netty you are running?

On Sun, May 15, 2011 at 9:37 PM, beric <ericbouer at gmail.com> wrote:
> Hello.
> I know this has been asked before but I still can't fix it.
> I'm getting  this exception when writing to a channel that is attached using
> a SimpleUplstreamHandler to another channel:
>
>
> May 15, 2011 6:16:37 PM org.jboss.netty.channel.socket.nio.NioWorker
> WARNING: Unexpected exception in the selector loop.
> java.lang.NullPointerException
>        at org.jboss.netty.channel.socket.nio.NioWorker.write0(NioWorker.java:503)
>        at
> org.jboss.netty.channel.socket.nio.NioWorker.writeFromTaskLoop(NioWorker.java:392)
>        at
> org.jboss.netty.channel.socket.nio.NioSocketChannel$WriteTask.run(NioSocketChannel.java:276)
>        at
> org.jboss.netty.channel.socket.nio.NioWorker.processWriteTaskQueue(NioWorker.java:268)
>        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:199)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
>
> I get this exception only when using each channel with a different handler.
> If I use the same handler for both than everything is OK.
>
> I tried switching to sun jvm and I'm still getting this error.
> What can be the cause of such an exception?
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/NioWorker-unexpected-exception-in-selector-loop-tp6365771p6365771.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>



-- 
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com



More information about the netty-users mailing list