Program: 113794
Project: 113794
Buggy source:
public MRCRequestDispatcher(final MRCConfig config) throws IOException, JSONException, ClassNotFoundException, IllegalAccessException, InstantiationException, DatabaseException {
  this.config=config;
  authString=NullAuthProvider.createAuthString(config.getUUID().toString(),config.getUUID().toString());
  Logging.logMessage(Logging.LEVEL_DEBUG,this,"String_Node_Str" + config.isUsingSSL());
  speedyStage=config.isUsingSSL() ? new MultiSpeedy(new SSLOptions(config.getServiceCredsFile(),config.getServiceCredsPassphrase(),config.getServiceCredsContainer(),config.getTrustedCertsFile(),config.getTrustedCertsPassphrase(),config.getTrustedCertsContainer(),false)) : new MultiSpeedy();
  speedyStage.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);
  dirClient=new DIRClient(speedyStage,config.getDirectoryService());
  policyContainer=new PolicyContainer(config);
  authProvider=policyContainer.getAuthenticationProvider();
  authProvider.initialize(config.isUsingSSL());
  if (Logging.isInfo())   Logging.logMessage(Logging.LEVEL_INFO,this,"String_Node_Str" + authProvider.getClass().getName() + "String_Node_Str");
  osdMonitor=new OSDStatusManager(config,dirClient,policyContainer,authString);
  osdMonitor.setLifeCycleListener(this);
  procStage=new ProcessingStage(this);
  volumeManager=new BabuDBVolumeManager(this);
  fileAccessManager=new FileAccessManager(volumeManager,policyContainer);
  ServiceDataGenerator gen=new ServiceDataGenerator(){
    public Map<String,Map<String,Object>> getServiceData(){
      String uuid=config.getUUID().toString();
      OperatingSystemMXBean osb=ManagementFactory.getOperatingSystemMXBean();
      String load=String.valueOf((int)(osb.getSystemLoadAverage() * 100 / osb.getAvailableProcessors()));
      long totalRAM=Runtime.getRuntime().maxMemory();
      long usedRAM=Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
      Map<String,Map<String,Object>> map=new HashMap<String,Map<String,Object>>();
      map.put(uuid,RPCClient.generateMap("String_Node_Str","String_Node_Str","String_Node_Str",load,"String_Node_Str",VersionManagement.getSupportedProtVersAsString(),"String_Node_Str",Long.toString(totalRAM),"String_Node_Str",Long.toString(usedRAM),"String_Node_Str",config.getGeoCoordinates()));
      try {
        for (        VolumeInfo vol : volumeManager.getVolumes()) {
          Map<String,Object> dsVolumeInfo=MRCOpHelper.createDSVolumeInfo(vol,osdMonitor,uuid);
          map.put(vol.getId(),dsVolumeInfo);
        }
      }
 catch (      DatabaseException exc) {
        Logging.logMessage(Logging.LEVEL_ERROR,this,exc);
      }
      return map;
    }
  }
;
  heartbeatThread=new HeartbeatThread("String_Node_Str",dirClient,config.getUUID(),gen,authString,config);
}

Fixed version (ground truth):
public MRCRequestDispatcher(final MRCConfig config) throws IOException, JSONException, ClassNotFoundException, IllegalAccessException, InstantiationException, DatabaseException {
  this.config=config;
  authString=NullAuthProvider.createAuthString(config.getUUID().toString(),config.getUUID().toString());
  Logging.logMessage(Logging.LEVEL_DEBUG,this,"String_Node_Str" + config.isUsingSSL());
  speedyStage=config.isUsingSSL() ? new MultiSpeedy(new SSLOptions(config.getServiceCredsFile(),config.getServiceCredsPassphrase(),config.getServiceCredsContainer(),config.getTrustedCertsFile(),config.getTrustedCertsPassphrase(),config.getTrustedCertsContainer(),false)) : new MultiSpeedy();
  speedyStage.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);
  dirClient=new DIRClient(speedyStage,config.getDirectoryService());
  policyContainer=new PolicyContainer(config);
  authProvider=policyContainer.getAuthenticationProvider();
  authProvider.initialize(config.isUsingSSL());
  if (Logging.isInfo())   Logging.logMessage(Logging.LEVEL_INFO,this,"String_Node_Str" + authProvider.getClass().getName() + "String_Node_Str");
  osdMonitor=new OSDStatusManager(config,dirClient,policyContainer,authString);
  osdMonitor.setLifeCycleListener(this);
  procStage=new ProcessingStage(this);
  volumeManager=new BabuDBVolumeManager(this);
  fileAccessManager=new FileAccessManager(volumeManager,policyContainer);
  ServiceDataGenerator gen=new ServiceDataGenerator(){
    public Map<String,Map<String,Object>> getServiceData(){
      String uuid=config.getUUID().toString();
      OperatingSystemMXBean osb=ManagementFactory.getOperatingSystemMXBean();
      String load=String.valueOf((int)(osb.getSystemLoadAverage() * 100 / osb.getAvailableProcessors()));
      long totalRAM=Runtime.getRuntime().maxMemory();
      long usedRAM=Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
      Map<String,Map<String,Object>> map=new HashMap<String,Map<String,Object>>();
      map.put(uuid,RPCClient.generateMap("String_Node_Str","String_Node_Str","String_Node_Str",load,"String_Node_Str",VersionManagement.getSupportedProtVersAsString(),"String_Node_Str",Long.toString(totalRAM),"String_Node_Str",Long.toString(usedRAM),"String_Node_Str",config.getGeoCoordinates()));
      try {
        for (        VolumeInfo vol : volumeManager.getVolumes()) {
          Map<String,Object> dsVolumeInfo=MRCHelper.createDSVolumeInfo(vol,osdMonitor,uuid);
          map.put(vol.getId(),dsVolumeInfo);
        }
      }
 catch (      DatabaseException exc) {
        Logging.logMessage(Logging.LEVEL_ERROR,this,exc);
      }
      return map;
    }
  }
;
  heartbeatThread=new HeartbeatThread("String_Node_Str",dirClient,config.getUUID(),gen,authString,config);
}