Details
Description
23:42:34,559 WARN [DefaultExceptionMonitor] Unexpected exception.
java.lang.ClassCastException: org.apache.mina.core.polling.AbstractPollingIoConnector$ConnectionRequest cannot be cast to org.apache.mina.core.session.IoSession
at org.apache.mina.transport.socket.nio.NioSocketConnector.close(NioSocketConnector.java:218)
at org.apache.mina.transport.socket.nio.NioSocketConnector.close(NioSocketConnector.java:48)
at org.apache.mina.core.polling.AbstractPollingIoConnector.cancelKeys(AbstractPollingIoConnector.java:404)
at org.apache.mina.core.polling.AbstractPollingIoConnector.access$900(AbstractPollingIoConnector.java:64)
at org.apache.mina.core.polling.AbstractPollingIoConnector$Connector.run(AbstractPollingIoConnector.java:513)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
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)
Exception source in NioSocketConnector
211 protected void close(SocketChannel handle) throws Exception {
212 SelectionKey key = handle.keyFor(selector);
213
214 if (key != null)
217
218 IoSession session = (IoSession)key.attach(null);
...
223 }
Maybe related to this? https://issues.apache.org/jira/browse/DIRMINA-832