question: private void handleConnectError ( int retry , String host , int port , SocketChannel sockChannel , ClosedSelectorException e ) { if ( _logger . isLoggable ( Level . FINE ) ) _logger . log ( Level . FINE , "retrying connection due to closed selector exception: connecting to " + host + ":" + port + ", connect timeout=" + _config . getSocketConnectTimeout ( ) + " keepalive=" + LRMIUtilities . KEEP_ALIVE_MODE , e ) ; try { sockChannel . close ( ) ; } catch ( Exception ex ) { if ( _logger . isLoggable ( Level . FINE ) ) _logger . log ( Level . FINE , "Failed to close socket: connecting to " + host + ":" + port + ", connect timeout=" + _config . getSocketConnectTimeout ( ) + " keepalive=" + LRMIUtilities . KEEP_ALIVE_MODE , ex ) ; } if ( retry + 1 == SELECTOR_BUG_CONNECT_RETRY ) throw e ; }
target:  Handles the ClosedSelectorException error. This is a workaround for a bug in IBM1.4 JVM (IZ19325)