Program: 93609
Project: 93609
Buggy source:
public Configuration(String confFilePath){
  Yaml yaml=new Yaml();
  Map<String,Object> conf=null;
  try {
    conf=(Map<String,Object>)yaml.load(new FileInputStream(new File(confFilePath)));
  }
 catch (  FileNotFoundException fnef) {
    logger.error("String_Node_Str");
    conf=null;
  }
catch (  Throwable t) {
    logger.error("String_Node_Str",t);
    conf=null;
  }
  if (conf == null) {
    httpsListener=true;
    httpsPort=8443;
    httpsHost="String_Node_Str";
    httpListener=true;
    httpPort=8080;
    httpHost="String_Node_Str";
    ajpListener=false;
    ajpPort=8009;
    ajpHost="String_Node_Str";
    useEmbeddedKeystore=true;
    keystoreFile=null;
    keystorePassword=null;
    certPassword=null;
    mongoServers=new ArrayList<>();
    Map<String,Object> defaultMongoServer=new HashMap<>();
    defaultMongoServer.put(MONGO_HOST,"String_Node_Str");
    defaultMongoServer.put(MONGO_PORT,27017);
    mongoServers.add(defaultMongoServer);
    mongoMounts=new ArrayList<>();
    Map<String,Object> defaultMongoMounts=new HashMap<>();
    defaultMongoMounts.put(MONGO_MOUNT_WHAT,"String_Node_Str");
    defaultMongoMounts.put(MONGO_MOUNT_WHERE,"String_Node_Str");
    mongoMounts.add(defaultMongoMounts);
    applicationLogicMounts=new ArrayList<>();
    mongoCredentials=null;
    idmImpl=null;
    idmArgs=null;
    amImpl=null;
    amArgs=null;
    logFilePath=URLUtilis.removeTrailingSlashes(System.getProperty("String_Node_Str")) + File.separator + "String_Node_Str";
    logToConsole=true;
    logToFile=true;
    logLevel=Level.INFO;
    localCacheEnabled=false;
    localCacheTtl=1000;
    requestsLimit=100;
    ioThreads=2;
    workerThreads=32;
    bufferSize=16384;
    buffersPerRegion=20;
    directBuffers=true;
    forceGzipEncoding=false;
  }
 else {
    httpsListener=getAsBooleanOrDefault(conf,HTTPS_LISTENER,true);
    httpsPort=getAsIntegerOrDefault(conf,HTTPS_PORT,8443);
    httpsHost=getAsStringOrDefault(conf,HTTPS_HOST,"String_Node_Str");
    httpListener=getAsBooleanOrDefault(conf,HTTP_LISTENER,false);
    httpPort=getAsIntegerOrDefault(conf,HTTP_PORT,8080);
    httpHost=getAsStringOrDefault(conf,HTTP_HOST,"String_Node_Str");
    ajpListener=getAsBooleanOrDefault(conf,AJP_LISTENER,false);
    ajpPort=getAsIntegerOrDefault(conf,AJP_PORT,8009);
    ajpHost=getAsStringOrDefault(conf,AJP_HOST,"String_Node_Str");
    useEmbeddedKeystore=getAsBooleanOrDefault(conf,USE_EMBEDDED_KEYSTORE,true);
    keystoreFile=getAsStringOrDefault(conf,KEYSTORE_FILE,null);
    keystorePassword=getAsStringOrDefault(conf,KEYSTORE_PASSWORD,null);
    certPassword=getAsStringOrDefault(conf,CERT_PASSWORD,null);
    List<Map<String,Object>> mongoServersDefault=new ArrayList<>();
    Map<String,Object> defaultMongoServer=new HashMap<>();
    defaultMongoServer.put(MONGO_HOST,"String_Node_Str");
    defaultMongoServer.put(MONGO_PORT,27017);
    mongoServersDefault.add(defaultMongoServer);
    mongoServers=getAsListOfMaps(conf,MONGO_SERVERS,mongoServersDefault);
    mongoCredentials=getAsListOfMaps(conf,MONGO_CREDENTIALS,null);
    List<Map<String,Object>> mongoMountsDefault=new ArrayList<>();
    Map<String,Object> defaultMongoMounts=new HashMap<>();
    defaultMongoMounts.put(MONGO_MOUNT_WHAT,"String_Node_Str");
    defaultMongoMounts.put(MONGO_MOUNT_WHERE,"String_Node_Str");
    mongoMountsDefault.add(defaultMongoMounts);
    mongoMounts=getAsListOfMaps(conf,MONGO_MOUNTS,mongoMountsDefault);
    applicationLogicMounts=getAsListOfMaps(conf,APPLICATION_LOGIC_MOUNTS,new ArrayList<>());
    Map<String,Object> idm=getAsMap(conf,IDM);
    Map<String,Object> am=getAsMap(conf,ACCESS_MANAGER);
    idmImpl=getAsStringOrDefault(idm,IMPLEMENTATION_CLASS,"String_Node_Str");
    idmArgs=idm;
    amImpl=getAsStringOrDefault(am,IMPLEMENTATION_CLASS,"String_Node_Str");
    amArgs=am;
    logFilePath=getAsStringOrDefault(conf,LOG_FILE_PATH,URLUtilis.removeTrailingSlashes(System.getProperty("String_Node_Str")) + File.separator + "String_Node_Str");
    String _logLevel=getAsStringOrDefault(conf,LOG_LEVEL,"String_Node_Str");
    logToConsole=getAsBooleanOrDefault(conf,ENABLE_LOG_CONSOLE,true);
    logToFile=getAsBooleanOrDefault(conf,ENABLE_LOG_FILE,true);
    Level level;
    try {
      level=Level.valueOf(_logLevel);
    }
 catch (    Exception e) {
      logger.info("String_Node_Str","String_Node_Str",_logLevel,"String_Node_Str");
      level=Level.WARN;
    }
    logLevel=level;
    requestsLimit=getAsIntegerOrDefault(conf,REQUESTS_LIMIT,100);
    localCacheEnabled=getAsBooleanOrDefault(conf,LOCAL_CACHE_ENABLED,false);
    localCacheTtl=getAsLongOrDefault(conf,LOCAL_CACHE_TTL,(long)1000);
    ioThreads=getAsIntegerOrDefault(conf,IO_THREADS,2);
    workerThreads=getAsIntegerOrDefault(conf,WORKER_THREADS,32);
    bufferSize=getAsIntegerOrDefault(conf,BUFFER_SIZE,16384);
    buffersPerRegion=getAsIntegerOrDefault(conf,BUFFERS_PER_REGION,20);
    directBuffers=getAsBooleanOrDefault(conf,DIRECT_BUFFERS,true);
    forceGzipEncoding=getAsBooleanOrDefault(conf,FORCE_GZIP_ENCODING,false);
  }
}

Fixed version (ground truth):
public Configuration(String confFilePath){
  Yaml yaml=new Yaml();
  Map<String,Object> conf=null;
  try {
    conf=(Map<String,Object>)yaml.load(new FileInputStream(new File(confFilePath)));
  }
 catch (  FileNotFoundException fnef) {
    logger.error("String_Node_Str");
    conf=null;
  }
catch (  Throwable t) {
    logger.error("String_Node_Str",t);
    conf=null;
  }
  if (conf == null) {
    httpsListener=true;
    httpsPort=8443;
    httpsHost="String_Node_Str";
    httpListener=true;
    httpPort=8080;
    httpHost="String_Node_Str";
    ajpListener=false;
    ajpPort=8009;
    ajpHost="String_Node_Str";
    useEmbeddedKeystore=true;
    keystoreFile=null;
    keystorePassword=null;
    certPassword=null;
    mongoServers=new ArrayList<>();
    Map<String,Object> defaultMongoServer=new HashMap<>();
    defaultMongoServer.put(MONGO_HOST,"String_Node_Str");
    defaultMongoServer.put(MONGO_PORT,27017);
    mongoServers.add(defaultMongoServer);
    mongoMounts=new ArrayList<>();
    Map<String,Object> defaultMongoMounts=new HashMap<>();
    defaultMongoMounts.put(MONGO_MOUNT_WHAT,"String_Node_Str");
    defaultMongoMounts.put(MONGO_MOUNT_WHERE,"String_Node_Str");
    mongoMounts.add(defaultMongoMounts);
    applicationLogicMounts=new ArrayList<>();
    mongoCredentials=null;
    idmImpl=null;
    idmArgs=null;
    amImpl=null;
    amArgs=null;
    logFilePath=URLUtilis.removeTrailingSlashes(System.getProperty("String_Node_Str")) + File.separator + "String_Node_Str";
    logToConsole=true;
    logToFile=true;
    logLevel=Level.INFO;
    localCacheEnabled=true;
    localCacheTtl=1000;
    requestsLimit=100;
    ioThreads=2;
    workerThreads=32;
    bufferSize=16384;
    buffersPerRegion=20;
    directBuffers=true;
    forceGzipEncoding=false;
  }
 else {
    httpsListener=getAsBooleanOrDefault(conf,HTTPS_LISTENER,true);
    httpsPort=getAsIntegerOrDefault(conf,HTTPS_PORT,8443);
    httpsHost=getAsStringOrDefault(conf,HTTPS_HOST,"String_Node_Str");
    httpListener=getAsBooleanOrDefault(conf,HTTP_LISTENER,false);
    httpPort=getAsIntegerOrDefault(conf,HTTP_PORT,8080);
    httpHost=getAsStringOrDefault(conf,HTTP_HOST,"String_Node_Str");
    ajpListener=getAsBooleanOrDefault(conf,AJP_LISTENER,false);
    ajpPort=getAsIntegerOrDefault(conf,AJP_PORT,8009);
    ajpHost=getAsStringOrDefault(conf,AJP_HOST,"String_Node_Str");
    useEmbeddedKeystore=getAsBooleanOrDefault(conf,USE_EMBEDDED_KEYSTORE,true);
    keystoreFile=getAsStringOrDefault(conf,KEYSTORE_FILE,null);
    keystorePassword=getAsStringOrDefault(conf,KEYSTORE_PASSWORD,null);
    certPassword=getAsStringOrDefault(conf,CERT_PASSWORD,null);
    List<Map<String,Object>> mongoServersDefault=new ArrayList<>();
    Map<String,Object> defaultMongoServer=new HashMap<>();
    defaultMongoServer.put(MONGO_HOST,"String_Node_Str");
    defaultMongoServer.put(MONGO_PORT,27017);
    mongoServersDefault.add(defaultMongoServer);
    mongoServers=getAsListOfMaps(conf,MONGO_SERVERS,mongoServersDefault);
    mongoCredentials=getAsListOfMaps(conf,MONGO_CREDENTIALS,null);
    List<Map<String,Object>> mongoMountsDefault=new ArrayList<>();
    Map<String,Object> defaultMongoMounts=new HashMap<>();
    defaultMongoMounts.put(MONGO_MOUNT_WHAT,"String_Node_Str");
    defaultMongoMounts.put(MONGO_MOUNT_WHERE,"String_Node_Str");
    mongoMountsDefault.add(defaultMongoMounts);
    mongoMounts=getAsListOfMaps(conf,MONGO_MOUNTS,mongoMountsDefault);
    applicationLogicMounts=getAsListOfMaps(conf,APPLICATION_LOGIC_MOUNTS,new ArrayList<>());
    Map<String,Object> idm=getAsMap(conf,IDM);
    Map<String,Object> am=getAsMap(conf,ACCESS_MANAGER);
    idmImpl=getAsStringOrDefault(idm,IMPLEMENTATION_CLASS,"String_Node_Str");
    idmArgs=idm;
    amImpl=getAsStringOrDefault(am,IMPLEMENTATION_CLASS,"String_Node_Str");
    amArgs=am;
    logFilePath=getAsStringOrDefault(conf,LOG_FILE_PATH,URLUtilis.removeTrailingSlashes(System.getProperty("String_Node_Str")) + File.separator + "String_Node_Str");
    String _logLevel=getAsStringOrDefault(conf,LOG_LEVEL,"String_Node_Str");
    logToConsole=getAsBooleanOrDefault(conf,ENABLE_LOG_CONSOLE,true);
    logToFile=getAsBooleanOrDefault(conf,ENABLE_LOG_FILE,true);
    Level level;
    try {
      level=Level.valueOf(_logLevel);
    }
 catch (    Exception e) {
      logger.info("String_Node_Str","String_Node_Str",_logLevel,"String_Node_Str");
      level=Level.WARN;
    }
    logLevel=level;
    requestsLimit=getAsIntegerOrDefault(conf,REQUESTS_LIMIT,100);
    localCacheEnabled=getAsBooleanOrDefault(conf,LOCAL_CACHE_ENABLED,true);
    localCacheTtl=getAsLongOrDefault(conf,LOCAL_CACHE_TTL,(long)1000);
    ioThreads=getAsIntegerOrDefault(conf,IO_THREADS,2);
    workerThreads=getAsIntegerOrDefault(conf,WORKER_THREADS,32);
    bufferSize=getAsIntegerOrDefault(conf,BUFFER_SIZE,16384);
    buffersPerRegion=getAsIntegerOrDefault(conf,BUFFERS_PER_REGION,20);
    directBuffers=getAsBooleanOrDefault(conf,DIRECT_BUFFERS,true);
    forceGzipEncoding=getAsBooleanOrDefault(conf,FORCE_GZIP_ENCODING,false);
  }
}