Program: 116788
Project: 116788
Buggy source:
protected void activate(ComponentContext componentContext) throws Exception {
  try {
    Thread topologyTopicSubscriberThread=new Thread(new AutoscalerTopologyReceiver());
    topologyTopicSubscriberThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    TopicSubscriber healthStatTopicSubscriber=new TopicSubscriber(Constants.HEALTH_STAT_TOPIC);
    healthStatTopicSubscriber.setMessageListener(new HealthEventMessageReceiver());
    Thread healthStatTopicSubscriberThread=new Thread(healthStatTopicSubscriber);
    healthStatTopicSubscriberThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    HealthEventMessageDelegator healthEventMessageDelegator=new HealthEventMessageDelegator();
    Thread healthDelegatorThread=new Thread(healthEventMessageDelegator);
    healthDelegatorThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    this.registryManager=RegistryManager.getInstance();
    ArrayList<Partition> partitions=this.retreivePartitions();
    Iterator<Partition> it=partitions.iterator();
    while (it.hasNext()) {
      Partition par=it.next();
      PartitionManager.getInstance().addPartitionToInformationModel(par);
    }
    ArrayList<AutoscalePolicy> asPolicies=this.retreiveASPolicies();
    Iterator<AutoscalePolicy> asItr=asPolicies.iterator();
    while (asItr.hasNext()) {
      AutoscalePolicy asPolicy=asItr.next();
      PolicyManager.getInstance().addASPolicyToInformationModel(asPolicy);
    }
    ArrayList<DeploymentPolicy> depPolicies=this.retreiveDeploymentPolicies();
    Iterator<DeploymentPolicy> depItr=depPolicies.iterator();
    while (depItr.hasNext()) {
      DeploymentPolicy depPolicy=depItr.next();
      PolicyManager.getInstance().addDeploymentPolicyToInformationModel(depPolicy);
    }
    if (log.isInfoEnabled()) {
      log.info("String_Node_Str");
    }
  }
 catch (  Throwable e) {
    log.error("String_Node_Str" + e.getStackTrace());
  }
}

Fixed version (ground truth):
protected void activate(ComponentContext componentContext) throws Exception {
  try {
    Thread topologyTopicSubscriberThread=new Thread(new AutoscalerTopologyReceiver());
    topologyTopicSubscriberThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    TopicSubscriber healthStatTopicSubscriber=new TopicSubscriber(Constants.HEALTH_STAT_TOPIC);
    healthStatTopicSubscriber.setMessageListener(new HealthEventMessageReceiver());
    Thread healthStatTopicSubscriberThread=new Thread(healthStatTopicSubscriber);
    healthStatTopicSubscriberThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    HealthEventMessageDelegator healthEventMessageDelegator=new HealthEventMessageDelegator();
    Thread healthDelegatorThread=new Thread(healthEventMessageDelegator);
    healthDelegatorThread.start();
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    this.registryManager=RegistryManager.getInstance();
    ArrayList<Partition> partitions=this.retreivePartitions();
    Iterator<Partition> it=partitions.iterator();
    while (it.hasNext()) {
      Partition par=it.next();
      PartitionManager.getInstance().addPartitionToInformationModel(par);
    }
    ArrayList<AutoscalePolicy> asPolicies=this.retreiveASPolicies();
    Iterator<AutoscalePolicy> asItr=asPolicies.iterator();
    while (asItr.hasNext()) {
      AutoscalePolicy asPolicy=asItr.next();
      PolicyManager.getInstance().addASPolicyToInformationModel(asPolicy);
    }
    ArrayList<DeploymentPolicy> depPolicies=this.retreiveDeploymentPolicies();
    Iterator<DeploymentPolicy> depItr=depPolicies.iterator();
    while (depItr.hasNext()) {
      DeploymentPolicy depPolicy=depItr.next();
      PolicyManager.getInstance().addDeploymentPolicyToInformationModel(depPolicy);
    }
    if (log.isInfoEnabled()) {
      log.info("String_Node_Str");
    }
  }
 catch (  Throwable e) {
    log.error("String_Node_Str",e);
  }
}