Program: 93608
Project: 93608
Buggy source:
private static void start(){
  if (conf == null) {
    logger.error("String_Node_Str");
    System.exit(-1);
  }
  if (!conf.isHttpsListener() && !conf.isHttpListener() && !conf.isAjpListener()) {
    logger.error("String_Node_Str");
    System.exit(-1);
  }
  IdentityManager identityManager=null;
  if (conf.getIdmImpl() == null) {
    logger.warn("String_Node_Str");
    identityManager=null;
  }
 else {
    try {
      Object idm=Class.forName(conf.getIdmImpl()).getConstructor(Map.class).newInstance(conf.getIdmArgs());
      identityManager=(IdentityManager)idm;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      logger.error("String_Node_Str",conf.getIdmImpl(),ex);
      System.exit(-3);
    }
  }
  AccessManager accessManager=null;
  if (conf.getAmImpl() == null && conf.getIdmImpl() != null) {
    logger.warn("String_Node_Str");
    accessManager=null;
  }
 else   if (conf.getAmImpl() == null && conf.getIdmImpl() == null) {
    logger.warn("String_Node_Str");
    accessManager=null;
  }
 else {
    try {
      Object am=Class.forName(conf.getAmImpl()).getConstructor(Map.class).newInstance(conf.getAmArgs());
      accessManager=(AccessManager)am;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      logger.error("String_Node_Str",conf.getAmImpl(),ex);
      System.exit(-3);
    }
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (conf.isUseEmbeddedKeystore()) {
      char[] storepass="String_Node_Str".toCharArray();
      char[] keypass="String_Node_Str".toCharArray();
      String storename="String_Node_Str";
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      ks.load(Bootstrapper.class.getClassLoader().getResourceAsStream(storename),storepass);
      kmf.init(ks,keypass);
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
 else {
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      FileInputStream fis=new FileInputStream(new File(conf.getKeystoreFile()));
      ks.load(fis,conf.getKeystorePassword().toCharArray());
      kmf.init(ks,conf.getCertPassword().toCharArray());
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
catch (  FileNotFoundException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
catch (  IOException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
  try {
    browserRootFile=ResourcesExtractor.extract("String_Node_Str");
  }
 catch (  URISyntaxException|IOException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
  logger.info("String_Node_Str",browserRootFile.toString());
  Builder builder=Undertow.builder();
  if (conf.isHttpsListener()) {
    builder.addHttpsListener(conf.getHttpsPort(),conf.getHttpHost(),sslContext);
    logger.info("String_Node_Str",conf.getHttpsHost(),conf.getHttpsPort());
  }
  if (conf.isHttpListener()) {
    builder.addHttpListener(conf.getHttpPort(),conf.getHttpsHost());
    logger.info("String_Node_Str",conf.getHttpHost(),conf.getHttpPort());
  }
  if (conf.isAjpListener()) {
    builder.addAjpListener(conf.getAjpPort(),conf.getAjpHost());
    logger.info("String_Node_Str",conf.getAjpHost(),conf.getAjpPort());
  }
  if (conf.isLocalCacheEnabled()) {
    LocalCachesSingleton.init(conf);
    logger.info("String_Node_Str");
  }
  hanldersPipe=getHandlersPipe(identityManager,accessManager);
  builder.setIoThreads(conf.getIoThreads()).setWorkerThreads(conf.getWorkerThreads()).setDirectBuffers(conf.isDirectBuffers()).setBufferSize(conf.getBufferSize()).setBuffersPerRegion(conf.getBuffersPerRegion()).setHandler(hanldersPipe);
  builder.build().start();
}

Fixed version (ground truth):
private static void start(){
  if (conf == null) {
    logger.error("String_Node_Str");
    System.exit(-1);
  }
  if (!conf.isHttpsListener() && !conf.isHttpListener() && !conf.isAjpListener()) {
    logger.error("String_Node_Str");
    System.exit(-1);
  }
  IdentityManager identityManager=null;
  if (conf.getIdmImpl() == null) {
    logger.warn("String_Node_Str");
    identityManager=null;
  }
 else {
    try {
      Object idm=Class.forName(conf.getIdmImpl()).getConstructor(Map.class).newInstance(conf.getIdmArgs());
      identityManager=(IdentityManager)idm;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      logger.error("String_Node_Str",conf.getIdmImpl(),ex);
      System.exit(-3);
    }
  }
  AccessManager accessManager=null;
  if (conf.getAmImpl() == null && conf.getIdmImpl() != null) {
    logger.warn("String_Node_Str");
    accessManager=null;
  }
 else   if (conf.getAmImpl() == null && conf.getIdmImpl() == null) {
    logger.warn("String_Node_Str");
    accessManager=null;
  }
 else {
    try {
      Object am=Class.forName(conf.getAmImpl()).getConstructor(Map.class).newInstance(conf.getAmArgs());
      accessManager=(AccessManager)am;
    }
 catch (    ClassCastException|NoSuchMethodException|SecurityException|ClassNotFoundException|IllegalArgumentException|InstantiationException|IllegalAccessException|InvocationTargetException ex) {
      logger.error("String_Node_Str",conf.getAmImpl(),ex);
      System.exit(-3);
    }
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (conf.isUseEmbeddedKeystore()) {
      char[] storepass="String_Node_Str".toCharArray();
      char[] keypass="String_Node_Str".toCharArray();
      String storename="String_Node_Str";
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      ks.load(Bootstrapper.class.getClassLoader().getResourceAsStream(storename),storepass);
      kmf.init(ks,keypass);
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
 else {
      sslContext=SSLContext.getInstance("String_Node_Str");
      kmf=KeyManagerFactory.getInstance("String_Node_Str");
      ks=KeyStore.getInstance("String_Node_Str");
      FileInputStream fis=new FileInputStream(new File(conf.getKeystoreFile()));
      ks.load(fis,conf.getKeystorePassword().toCharArray());
      kmf.init(ks,conf.getCertPassword().toCharArray());
      sslContext.init(kmf.getKeyManagers(),null,null);
    }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
catch (  FileNotFoundException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
catch (  IOException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
  try {
    browserRootFile=ResourcesExtractor.extract("String_Node_Str");
  }
 catch (  URISyntaxException|IOException ex) {
    logger.error("String_Node_Str",ex);
    System.exit(-1);
  }
  logger.info("String_Node_Str",browserRootFile.toString());
  Builder builder=Undertow.builder();
  if (conf.isHttpsListener()) {
    builder.addHttpsListener(conf.getHttpsPort(),conf.getHttpHost(),sslContext);
    logger.info("String_Node_Str",conf.getHttpsHost(),conf.getHttpsPort());
  }
  if (conf.isHttpListener()) {
    builder.addHttpListener(conf.getHttpPort(),conf.getHttpsHost());
    logger.info("String_Node_Str",conf.getHttpHost(),conf.getHttpPort());
  }
  if (conf.isAjpListener()) {
    builder.addAjpListener(conf.getAjpPort(),conf.getAjpHost());
    logger.info("String_Node_Str",conf.getAjpHost(),conf.getAjpPort());
  }
  LocalCachesSingleton.init(conf);
  if (conf.isLocalCacheEnabled())   logger.info("String_Node_Str");
 else   logger.info("String_Node_Str");
  hanldersPipe=getHandlersPipe(identityManager,accessManager);
  builder.setIoThreads(conf.getIoThreads()).setWorkerThreads(conf.getWorkerThreads()).setDirectBuffers(conf.isDirectBuffers()).setBufferSize(conf.getBufferSize()).setBuffersPerRegion(conf.getBuffersPerRegion()).setHandler(hanldersPipe);
  builder.build().start();
}