Hi,
I have a client application with one IoProcessor which I have managed to
block on a local queue. This means that new outgoing connections cannot
complete, right?
My question is: how is the main loop in Connector.run() exited in these
circumstances? I see an infinite loop with the following messages
repeated over and over:
2009-07-22 18:29:44,748 [NioSocketConnector-2] WARN
mina.util.DefaultExceptionMonitor - Unexpected exception.
java.nio.channels.ClosedSelectorException
at sun.nio.ch.SelectorImpl.keys(SelectorImpl.java:51)
at
org.apache.mina.transport.socket.nio.NioSocketConnector.allHandles(NioSocketConnector.java:178)
at org.apache.mina.core.polling.AbstractPollingIoConnector
$Connector.run(AbstractPollingIoConnector.java:483)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
(The thread running this loop is a daemon thread, BTW, and the
application is trying to exit.)
Regards,
Steve