Program: 89525
Project: 89525
Buggy source:
/** 
 * Initialises a GUI Web Server and adds web applications.
 * @throws IOFailure on trouble starting server.
 */
public GUIWebServer(){
  int port=Integer.parseInt(Settings.get(CommonSettings.HTTP_PORT_NUMBER));
  if (port < HTTP_PORT_NUMBER_LOWER_LIMIT || port > HTTP_PORT_NUMBER_UPPER_LIMIT) {
    throw new IOFailure("String_Node_Str" + HTTP_PORT_NUMBER_LOWER_LIMIT + "String_Node_Str"+ HTTP_PORT_NUMBER_UPPER_LIMIT+ "String_Node_Str"+ port);
  }
  String[] webApps=Settings.getAll(CommonSettings.SITESECTION_WEBAPPLICATION);
  String[] classes=Settings.getAll(CommonSettings.SITESECTION_CLASS);
  if (webApps.length != classes.length) {
    throw new IOFailure("String_Node_Str" + "String_Node_Str" + "String_Node_Str" + StringUtils.conjoin("String_Node_Str",webApps) + "String_Node_Str"+ "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",classes)+ "String_Node_Str");
  }
  log.info("String_Node_Str" + port + "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",webApps)+ "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",classes)+ "String_Node_Str");
  server=new Tomcat();
  System.setProperty("String_Node_Str","String_Node_Str");
  final File tempDir=FileUtils.getTempDir();
  log.debug("String_Node_Str" + tempDir);
  File basedir=tempDir.getAbsoluteFile().getParentFile();
  log.debug("String_Node_Str" + basedir);
  server.setBaseDir(basedir.getAbsolutePath());
  File webapps=new File(basedir,"String_Node_Str");
  if (webapps.exists()) {
    FileUtils.removeRecursively(webapps);
    log.info("String_Node_Str" + webapps.getAbsolutePath() + "String_Node_Str");
  }
  webapps.mkdirs();
  server.setPort(port);
  boolean taglibsScanningDisabled=false;
  if (System.getProperty(Constants.SKIP_JARS_PROPERTY) == null) {
    log.info("String_Node_Str" + Constants.SKIP_JARS_PROPERTY + "String_Node_Str");
    taglibsScanningDisabled=true;
  }
  for (  String webappFilename : webApps) {
    String webbase="String_Node_Str" + webappFilename;
    final String warSuffix="String_Node_Str";
    if (webappFilename.toLowerCase().endsWith(warSuffix)) {
      webbase="String_Node_Str" + webappFilename.substring(0,webappFilename.length() - warSuffix.length());
    }
    for (    SiteSection section : SiteSection.getSections()) {
      if (webbase.equals("String_Node_Str" + section.getDirname())) {
        section.initialize();
        break;
      }
    }
    try {
      String warfile=new File(basedir,webappFilename).getAbsolutePath();
      StandardContext ctx=(StandardContext)server.addWebapp(webbase,warfile);
      if (taglibsScanningDisabled) {
        StandardJarScanFilter jarScanFilter=(StandardJarScanFilter)ctx.getJarScanner().getJarScanFilter();
        jarScanFilter.setTldSkip("String_Node_Str");
      }
      if (webappFilename.equals(webApps[0])) {
        StandardContext rootCtx=(StandardContext)server.addWebapp("String_Node_Str",warfile);
        if (taglibsScanningDisabled) {
          StandardJarScanFilter jarScanFilter=(StandardJarScanFilter)rootCtx.getJarScanner().getJarScanFilter();
          jarScanFilter.setTldSkip("String_Node_Str");
        }
      }
    }
 catch (    ServletException e) {
      log.error("String_Node_Str" + webappFilename,e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Initialises a GUI Web Server and adds web applications.
 * @throws IOFailure on trouble starting server.
 */
public GUIWebServer(){
  int port=Integer.parseInt(Settings.get(CommonSettings.HTTP_PORT_NUMBER));
  if (port < HTTP_PORT_NUMBER_LOWER_LIMIT || port > HTTP_PORT_NUMBER_UPPER_LIMIT) {
    throw new IOFailure("String_Node_Str" + HTTP_PORT_NUMBER_LOWER_LIMIT + "String_Node_Str"+ HTTP_PORT_NUMBER_UPPER_LIMIT+ "String_Node_Str"+ port);
  }
  String[] webApps=Settings.getAll(CommonSettings.SITESECTION_WEBAPPLICATION);
  String[] classes=Settings.getAll(CommonSettings.SITESECTION_CLASS);
  if (webApps.length != classes.length) {
    throw new IOFailure("String_Node_Str" + "String_Node_Str" + "String_Node_Str" + StringUtils.conjoin("String_Node_Str",webApps) + "String_Node_Str"+ "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",classes)+ "String_Node_Str");
  }
  log.info("String_Node_Str" + port + "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",webApps)+ "String_Node_Str"+ StringUtils.conjoin("String_Node_Str",classes)+ "String_Node_Str");
  server=new Tomcat();
  System.setProperty("String_Node_Str","String_Node_Str");
  final File tempDir=FileUtils.getTempDir();
  log.debug("String_Node_Str" + tempDir);
  File basedir=tempDir.getAbsoluteFile().getParentFile();
  log.debug("String_Node_Str" + basedir);
  server.setBaseDir(basedir.getAbsolutePath());
  File webapps=new File(basedir,"String_Node_Str");
  if (webapps.exists()) {
    FileUtils.removeRecursively(webapps);
    log.info("String_Node_Str" + webapps.getAbsolutePath() + "String_Node_Str");
  }
  webapps.mkdirs();
  server.setPort(port);
  boolean taglibsScanningDisabled=false;
  if (System.getProperty(Constants.SKIP_JARS_PROPERTY) == null) {
    log.info("String_Node_Str" + Constants.SKIP_JARS_PROPERTY + "String_Node_Str");
    taglibsScanningDisabled=true;
  }
  for (  String webapp : webApps) {
    String webappFilename=new File(webapp).getName();
    String webbase="String_Node_Str" + webappFilename;
    final String warSuffix="String_Node_Str";
    if (webappFilename.toLowerCase().endsWith(warSuffix)) {
      webbase="String_Node_Str" + webappFilename.substring(0,webappFilename.length() - warSuffix.length());
    }
    for (    SiteSection section : SiteSection.getSections()) {
      if (webbase.equals("String_Node_Str" + section.getDirname())) {
        section.initialize();
        break;
      }
    }
    try {
      String warfile=new File(basedir,webapp).getAbsolutePath();
      log.info("String_Node_Str",webbase,warfile);
      StandardContext ctx=(StandardContext)server.addWebapp(webbase,warfile);
      if (taglibsScanningDisabled) {
        StandardJarScanFilter jarScanFilter=(StandardJarScanFilter)ctx.getJarScanner().getJarScanFilter();
        jarScanFilter.setTldSkip("String_Node_Str");
      }
      if (webappFilename.equals(webApps[0])) {
        StandardContext rootCtx=(StandardContext)server.addWebapp("String_Node_Str",warfile);
        if (taglibsScanningDisabled) {
          StandardJarScanFilter jarScanFilter=(StandardJarScanFilter)rootCtx.getJarScanner().getJarScanFilter();
          jarScanFilter.setTldSkip("String_Node_Str");
        }
      }
    }
 catch (    ServletException e) {
      log.error("String_Node_Str" + webapp,e);
    }
  }
}