mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DIRMINA-834) ClassCastException on close
Date Mon, 09 Jul 2012 20:05:40 GMT

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

Emmanuel Lecharny closed DIRMINA-834.
-------------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.0.4

See DIRMINA-832
                
> ClassCastException on close
> ---------------------------
>
>                 Key: DIRMINA-834
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-834
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.3
>         Environment: Win 7 x64
> JDK 6u24 x64
>            Reporter: Matt Yates
>              Labels: cancel, close, connector, core
>             Fix For: 2.0.4
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message