Program: 30344
Project: 30344
Buggy source:
private void validateSSHConnection(ParameterMap map) throws CommandValidationException {
  String nodehost=map.getOne(PARAM_NODEHOST);
  String installdir=map.getOne(PARAM_INSTALLDIR);
  String nodedir=map.getOne(PARAM_NODEDIR);
  String sshport=map.getOne(PARAM_SSHPORT);
  String sshuser=map.getOne(PARAM_SSHUSER);
  String sshkeyfile=map.getOne(PARAM_SSHKEYFILE);
  String sshpassword=map.getOne(PARAM_SSHPASSWORD);
  String sshkeypassphrase=map.getOne(PARAM_SSHKEYPASSPHRASE);
  boolean installFlag=Boolean.parseBoolean(map.getOne(PARAM_INSTALL));
  if (!NetUtils.isPortStringValid(resolver.resolve(sshport))) {
    throw new CommandValidationException(Strings.get("String_Node_Str",sshport));
  }
  int port=Integer.parseInt(resolver.resolve(sshport));
  try {
    String resolvedInstallDir=resolver.resolve(installdir);
    sshL.validate(resolver.resolve(nodehost),port,resolver.resolve(sshuser),sshpassword,resolver.resolve(sshkeyfile),sshkeypassphrase,resolvedInstallDir,LANDMARK_FILE,logger);
  }
 catch (  IOException e) {
    String m1=e.getMessage();
    String m2="String_Node_Str";
    Throwable e2=e.getCause();
    if (e2 != null) {
      m2=e2.getMessage();
    }
    if (e instanceof FileNotFoundException) {
      logger.warning(StringUtils.cat("String_Node_Str",m1,m2,sshL.toString()));
      if (!installFlag)       throw new CommandValidationException(StringUtils.cat(NL,m1,m2));
    }
 else {
      String msg=Strings.get("String_Node_Str",nodehost);
      logger.warning(StringUtils.cat("String_Node_Str",msg,m1,m2,sshL.toString()));
      throw new CommandValidationException(StringUtils.cat(NL,msg,m1,m2));
    }
  }
}

Fixed version (ground truth):
private void validateSSHConnection(ParameterMap map) throws CommandValidationException {
  String nodehost=map.getOne(PARAM_NODEHOST);
  String installdir=map.getOne(PARAM_INSTALLDIR);
  String sshport=map.getOne(PARAM_SSHPORT);
  String sshuser=map.getOne(PARAM_SSHUSER);
  String sshkeyfile=map.getOne(PARAM_SSHKEYFILE);
  String sshpassword=map.getOne(PARAM_SSHPASSWORD);
  String sshkeypassphrase=map.getOne(PARAM_SSHKEYPASSPHRASE);
  boolean installFlag=Boolean.parseBoolean(map.getOne(PARAM_INSTALL));
  if (!NetUtils.isPortStringValid(resolver.resolve(sshport))) {
    throw new CommandValidationException(Strings.get("String_Node_Str",sshport));
  }
  int port=Integer.parseInt(resolver.resolve(sshport));
  try {
    String resolvedInstallDir=resolver.resolve(installdir);
    sshL.validate(resolver.resolve(nodehost),port,resolver.resolve(sshuser),sshpassword,resolver.resolve(sshkeyfile),sshkeypassphrase,resolvedInstallDir,LANDMARK_FILE,logger);
  }
 catch (  IOException e) {
    String m1=e.getMessage();
    String m2="String_Node_Str";
    Throwable e2=e.getCause();
    if (e2 != null) {
      m2=e2.getMessage();
    }
    if (e instanceof FileNotFoundException) {
      logger.warning(StringUtils.cat("String_Node_Str",m1,m2,sshL.toString()));
      if (!installFlag)       throw new CommandValidationException(StringUtils.cat(NL,m1,m2));
    }
 else {
      String msg=Strings.get("String_Node_Str",nodehost);
      logger.warning(StringUtils.cat("String_Node_Str",msg,m1,m2,sshL.toString()));
      throw new CommandValidationException(StringUtils.cat(NL,msg,m1,m2));
    }
  }
}