You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2009/05/15 14:04:50 UTC

[jira] Resolved: (AMQ-2253) exception on stop: NIOTransport - Could not stop service: ... Reason: java.nio.channels.CancelledKeyException

     [ https://issues.apache.org/activemq/browse/AMQ-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2253.
-----------------------------

    Resolution: Fixed

r775094 - during stop, the selector may be already have no interest, a little check is needed to ensure the exception does not occur.

> exception on stop: NIOTransport - Could not stop service: ... Reason: java.nio.channels.CancelledKeyException
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2253
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2253
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.3.0
>
>
> When using NIO the broker can emit the following on shutdown {code}
> ERROR - NIOTransport                   - Could not stop service: tcp:///127.0.0.1:55470. Reason: java.nio.channels.CancelledKeyException
> java.nio.channels.CancelledKeyException
> 	at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
> 	at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:64)
> 	at org.apache.activemq.transport.nio.SelectorSelection.disable(SelectorSelection.java:52)
> 	at org.apache.activemq.transport.nio.NIOTransport.doStop(NIOTransport.java:152)
> 	at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:69)
> 	at org.apache.activemq.transport.tcp.TcpTransport.stop(TcpTransport.java:499)
> 	at org.apache.activemq.transport.InactivityMonitor.stop(InactivityMonitor.java:117)
> 	at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64)
> 	at org.apache.activemq.transport.WireFormatNegotiator.stop(WireFormatNegotiator.java:91)
> 	at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:64)
> 	at org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:967)
> 	at org.apache.activemq.broker.jmx.ManagedTransportConnection.doStop(ManagedTransportConnection.java:74)
> 	at org.apache.activemq.broker.TransportConnection$3.run(TransportConnection.java:932)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.