Program: 93457
Project: 93457
Buggy source:
/** 
 * startCoreSystem
 */
private static void startCoreSystem(){
  if (configuration == null) {
    logErrorAndExit("String_Node_Str",null,false,-1);
  }
  if (!configuration.isHttpsListener() && !configuration.isHttpListener() && !configuration.isAjpListener()) {
    logErrorAndExit("String_Node_Str",null,false,-1);
  }
  final IdentityManager identityManager=loadIdentityManager();
  final AccessManager accessManager=loadAccessManager();
  if (configuration.isAuthTokenEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getAuthTokenTtl());
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (getConfiguration().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(KeyManagerFactory.getDefaultAlgorithm());
      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(KeyManagerFactory.getDefaultAlgorithm());
      ks=KeyStore.getInstance("String_Node_Str");
      try (FileInputStream fis=new FileInputStream(new File(configuration.getKeystoreFile()))){
        ks.load(fis,configuration.getKeystorePassword().toCharArray());
        kmf.init(ks,configuration.getCertPassword().toCharArray());
        sslContext.init(kmf.getKeyManagers(),null,null);
      }
     }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
catch (  FileNotFoundException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
catch (  IOException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
  Builder builder=Undertow.builder();
  if (configuration.isHttpsListener()) {
    builder.addHttpsListener(configuration.getHttpsPort(),configuration.getHttpHost(),sslContext);
    LOGGER.info("String_Node_Str",configuration.getHttpsHost(),configuration.getHttpsPort());
  }
  if (configuration.isHttpListener()) {
    builder.addHttpListener(configuration.getHttpPort(),configuration.getHttpsHost());
    LOGGER.info("String_Node_Str",configuration.getHttpHost(),configuration.getHttpPort());
  }
  if (configuration.isAjpListener()) {
    builder.addAjpListener(configuration.getAjpPort(),configuration.getAjpHost());
    LOGGER.info("String_Node_Str",configuration.getAjpHost(),configuration.getAjpPort());
  }
  LocalCachesSingleton.init(configuration);
  if (configuration.isLocalCacheEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getLocalCacheTtl() < 0 ? "String_Node_Str" : configuration.getLocalCacheTtl());
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  if (configuration.isSchemaCacheEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getSchemaCacheTtl() < 0 ? "String_Node_Str" : configuration.getSchemaCacheTtl());
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  shutdownHandler=getHandlersPipe(identityManager,accessManager);
  builder=builder.setIoThreads(configuration.getIoThreads()).setWorkerThreads(configuration.getWorkerThreads()).setDirectBuffers(configuration.isDirectBuffers()).setBufferSize(configuration.getBufferSize()).setBuffersPerRegion(configuration.getBuffersPerRegion()).setHandler(shutdownHandler);
  ConfigurationHelper.setConnectionOptions(builder,configuration);
  builder.build().start();
}

Fixed version (ground truth):
/** 
 * startCoreSystem
 */
private static void startCoreSystem(){
  if (configuration == null) {
    logErrorAndExit("String_Node_Str",null,false,-1);
  }
  if (!configuration.isHttpsListener() && !configuration.isHttpListener() && !configuration.isAjpListener()) {
    logErrorAndExit("String_Node_Str",null,false,-1);
  }
  final IdentityManager identityManager=loadIdentityManager();
  final AccessManager accessManager=loadAccessManager();
  if (configuration.isAuthTokenEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getAuthTokenTtl());
  }
  SSLContext sslContext=null;
  try {
    KeyManagerFactory kmf;
    KeyStore ks;
    if (getConfiguration().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(KeyManagerFactory.getDefaultAlgorithm());
      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(KeyManagerFactory.getDefaultAlgorithm());
      ks=KeyStore.getInstance("String_Node_Str");
      try (FileInputStream fis=new FileInputStream(new File(configuration.getKeystoreFile()))){
        ks.load(fis,configuration.getKeystorePassword().toCharArray());
        kmf.init(ks,configuration.getCertPassword().toCharArray());
        sslContext.init(kmf.getKeyManagers(),null,null);
      }
     }
  }
 catch (  KeyManagementException|NoSuchAlgorithmException|KeyStoreException|CertificateException|UnrecoverableKeyException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
catch (  FileNotFoundException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
catch (  IOException ex) {
    logErrorAndExit("String_Node_Str",ex,false,-1);
  }
  Builder builder=Undertow.builder();
  if (configuration.isHttpsListener()) {
    builder.addHttpsListener(configuration.getHttpsPort(),configuration.getHttpHost(),sslContext);
    LOGGER.info("String_Node_Str",configuration.getHttpsHost(),configuration.getHttpsPort());
  }
  if (configuration.isHttpListener()) {
    builder.addHttpListener(configuration.getHttpPort(),configuration.getHttpsHost());
    LOGGER.info("String_Node_Str",configuration.getHttpHost(),configuration.getHttpPort());
  }
  if (configuration.isAjpListener()) {
    builder.addAjpListener(configuration.getAjpPort(),configuration.getAjpHost());
    LOGGER.info("String_Node_Str",configuration.getAjpHost(),configuration.getAjpPort());
  }
  LocalCachesSingleton.init(configuration);
  if (configuration.isLocalCacheEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getLocalCacheTtl() < 0 ? "String_Node_Str" : configuration.getLocalCacheTtl());
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  if (configuration.isSchemaCacheEnabled()) {
    LOGGER.info("String_Node_Str",configuration.getSchemaCacheTtl() < 0 ? "String_Node_Str" : configuration.getSchemaCacheTtl());
  }
 else {
    LOGGER.info("String_Node_Str");
  }
  shutdownHandler=getHandlersPipe(identityManager,accessManager);
  builder=builder.setIoThreads(configuration.getIoThreads()).setWorkerThreads(configuration.getWorkerThreads()).setDirectBuffers(configuration.isDirectBuffers()).setBufferSize(configuration.getBufferSize()).setBuffersPerRegion(configuration.getBuffersPerRegion()).setHandler(shutdownHandler);
  ConfigurationHelper.setConnectionOptions(builder,configuration);
  undertowServer=builder.build();
  undertowServer.start();
}