Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-834

ClassCastException on close

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.3
    • 2.0.4
    • Core
    • Win 7 x64
      JDK 6u24 x64

    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)

      { 215 key.cancel(); 216 }

      217
      218 IoSession session = (IoSession)key.attach(null);
      ...
      223 }

      Maybe related to this? https://issues.apache.org/jira/browse/DIRMINA-832

      Attachments

        Activity

          People

            Unassigned Unassigned
            myates Matt Yates
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: