Program: 113853
Project: 113853
Buggy source:
/** 
 * Creates a new instance of RequestController 
 */
public RequestController(DIRConfig config) throws Exception {
  try {
    this.config=config;
    final AuthenticationProvider auth=(AuthenticationProvider)Class.forName(config.getAuthenticationProvider()).newInstance();
    auth.initialize(config.isUsingSSL());
    dirServiceStage=new DirServiceStage(config.getDbDir(),auth);
    dirServiceStage.setRequestListener(this);
    dirServiceStage.setLifeCycleListener(this);
    pinkyStage=config.isUsingSSL() ? new PipelinedPinky(config.getPort(),config.getAddress(),this,new SSLOptions(config.getServiceCredsFile(),config.getServiceCredsPassphrase(),config.getServiceCredsContainer(),config.getTrustedCertsFile(),config.getTrustedCertsPassphrase(),config.getTrustedCertsContainer(),false)) : new PipelinedPinky(config.getPort(),config.getAddress(),this);
    pinkyStage.setLifeCycleListener(this);
    StringBuffer sb=null;
    try {
      InputStream is=this.getClass().getClassLoader().getResourceAsStream("String_Node_Str");
      if (is == null)       is=this.getClass().getResourceAsStream("String_Node_Str");
      BufferedReader br=new BufferedReader(new InputStreamReader(is));
      sb=new StringBuffer();
      String line=br.readLine();
      while (line != null) {
        sb.append(line + "String_Node_Str");
        line=br.readLine();
      }
      br.close();
    }
 catch (    Exception ex) {
      Logging.logMessage(Logging.LEVEL_DEBUG,this,ex);
    }
    if (sb == null) {
      statusPageTemplate="String_Node_Str";
    }
 else {
      statusPageTemplate=sb.toString();
    }
    Logging.logMessage(Logging.LEVEL_INFO,this,"String_Node_Str" + config.getPort());
  }
 catch (  Exception exc) {
    shutdown();
    throw exc;
  }
}

Fixed version (ground truth):
/** 
 * Creates a new instance of RequestController 
 */
public RequestController(DIRConfig config) throws Exception {
  try {
    this.config=config;
    final AuthenticationProvider auth=(AuthenticationProvider)Class.forName(config.getAuthenticationProvider()).newInstance();
    auth.initialize(config.isUsingSSL());
    dirServiceStage=new DirServiceStage(config.getDbDir(),auth);
    dirServiceStage.setRequestListener(this);
    dirServiceStage.setLifeCycleListener(this);
    pinkyStage=config.isUsingSSL() ? new PipelinedPinky(config.getPort(),config.getAddress(),this,new SSLOptions(config.getServiceCredsFile(),config.getServiceCredsPassphrase(),config.getServiceCredsContainer(),config.getTrustedCertsFile(),config.getTrustedCertsPassphrase(),config.getTrustedCertsContainer(),false)) : new PipelinedPinky(config.getPort(),config.getAddress(),this);
    pinkyStage.setLifeCycleListener(this);
    StringBuffer sb=null;
    try {
      InputStream is=this.getClass().getClassLoader().getResourceAsStream("String_Node_Str");
      if (is == null)       is=this.getClass().getResourceAsStream("String_Node_Str");
      BufferedReader br=new BufferedReader(new InputStreamReader(is));
      sb=new StringBuffer();
      String line=br.readLine();
      while (line != null) {
        sb.append(line + "String_Node_Str");
        line=br.readLine();
      }
      br.close();
    }
 catch (    Exception ex) {
      Logging.logMessage(Logging.LEVEL_DEBUG,this,ex);
    }
    if (sb == null) {
      statusPageTemplate="String_Node_Str";
    }
 else {
      statusPageTemplate=sb.toString();
    }
    Logging.logMessage(Logging.LEVEL_INFO,this,"String_Node_Str" + config.getPort());
  }
 catch (  Exception exc) {
    Logging.logMessage(Logging.LEVEL_ERROR,this,exc);
    shutdown();
    throw exc;
  }
}