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;
}

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 ; }
handles the closedselectorexception error . this is a workaround for a bug in ibm1 . 4 jvm ( iz19325 )
