A DESCRIPTION OF THE REQUEST :
SelectionKey seems to be cancelled *before* SelectionKey.cancel() is invoked. Specifically, the following exception is thrown.
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)
This bug is reportedly the same as 5076772, which is fixed in 6.0. However, this request is for the fix to be applied to earlier releases (see Justification section below).
JUSTIFICATION :
This exception is hosing communication for our servers running at our client sites. Specifically, the servers cannot accept any more connections once this problem occurs.
Please fix this for 1.4 since our existings clients are running that version of Java and cannot easily upgrade to 5.0.
At minimal, we need the fix for 5.0 since future clients.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Acceptable socket channels are not cancelled unless explicitly closed.
ACTUAL -
CancelledKeyException is thrown.
CUSTOMER SUBMITTED WORKAROUND :
None at the moment. We have our clients restart our servers.