[JBoss JIRA] Created: (NETTY-224) CancelledKeyException on Channel.setReadable() in NIO transport

Trustin Lee (JIRA) jira-events at lists.jboss.org
Thu Sep 3 22:08:23 EDT 2009


CancelledKeyException on Channel.setReadable() in NIO transport
---------------------------------------------------------------

                 Key: NETTY-224
                 URL: https://jira.jboss.org/jira/browse/NETTY-224
             Project: Netty
          Issue Type: Bug
          Components: Transport
            Reporter: Trustin Lee
            Assignee: Trustin Lee
            Priority: Minor
             Fix For: 3.1.3.GA


CancelledKeyException is raised when Channel.setReadable() is called on a closed channel in NIO transport:

java.nio.channels.CancelledKeyException
        at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
        at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:64)
        at org.jboss.netty.channel.socket.nio.NioWorker.setInterestOps(NioWorker.java:669)
        at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:136)
        at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:83)
        at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:66)
        at xxx.MyLoggingHandler.handleDownstream(MyLoggingHandler.java:284)
        at org.jboss.netty.handler.execution.ExecutionHandler.handleDownstream(ExecutionHandler.java:122)
        at org.jboss.netty.channel.Channels.setInterestOps(Channels.java:931)
        at org.jboss.netty.channel.AbstractChannel.setInterestOps(AbstractChannel.java:207)
        at org.jboss.netty.channel.AbstractChannel.setReadable(AbstractChannel.java:231)
        at xxx.MyProtocolHandler.channelClosed(MyProtocolHandler.java:29)
        at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:76)
        at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the netty-dev mailing list