[
https://issues.apache.org/jira/browse/DEFT-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098048#comment-13098048
]
Johnathan Meehan commented on DEFT-149:
---------------------------------------
Isn't it the case though that the server could continue to run without issue
were this particular exception caught? In that case I think it would be better
to catch, log and continue than allow it to fall over.
> IOLoop.start() may throw CancelledKeyException
> ----------------------------------------------
>
> Key: DEFT-149
> URL: https://issues.apache.org/jira/browse/DEFT-149
> Project: Deft
> Issue Type: Bug
> Assignee: Johnathan Meehan
> Fix For: 0.4.0
>
>
> Exception in thread "I/O-LOOP" java.nio.channels.CancelledKeyException
> at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
> at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)
> at java.nio.channels.SelectionKey.isAcceptable(SelectionKey.java:342)
> at org.deftserver.io.IOLoop.start(IOLoop.java:77)
> Would it be a reasonable solution to change the catch clause from
> catch(IOException e) to catch(Exception e)?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira