Program: 116198
Project: 116198
Buggy source:
public synchronized MemberContext spawnAnInstance(Partition partition,String clusterId,String networkPartitionId,String instanceID,boolean isPrimary,int minMemberCount) throws SpawningException {
  try {
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",clusterId,partition.getId(),networkPartitionId));
    }
    XMLConfiguration conf=ConfUtil.getInstance(null).getConfiguration();
    long expiryTime=conf.getLong(StratosConstants.OBSOLETED_VM_MEMBER_EXPIRY_TIMEOUT,86400000);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + expiryTime);
    }
    MemberContext member=new MemberContext();
    member.setClusterId(clusterId);
    member.setPartition(partition);
    member.setInstanceId(instanceID);
    member.setObsoleteExpiryTime(expiryTime);
    member.setInitTime(System.currentTimeMillis());
    member.setNetworkPartitionId(networkPartitionId);
    Properties memberContextProps=new Properties();
    Property isPrimaryProp=new Property();
    isPrimaryProp.setName("String_Node_Str");
    isPrimaryProp.setValue(String.valueOf(isPrimary));
    Property minCountProp=new Property();
    minCountProp.setName("String_Node_Str");
    minCountProp.setValue(String.valueOf(minMemberCount));
    memberContextProps.addProperty(isPrimaryProp);
    memberContextProps.addProperty(minCountProp);
    member.setProperties(AutoscalerUtil.toStubProperties(memberContextProps));
    long startTime=System.currentTimeMillis();
    MemberContext memberContext=stub.startInstance(member);
    if (log.isDebugEnabled()) {
      long endTime=System.currentTimeMillis();
      log.debug(String.format("String_Node_Str",(endTime - startTime)));
    }
    return memberContext;
  }
 catch (  CloudControllerServiceUnregisteredCartridgeExceptionException e) {
    String message=e.getFaultMessage().getUnregisteredCartridgeException().getMessage();
    log.error(message,e);
    throw new SpawningException(message,e);
  }
catch (  RemoteException e) {
    log.error(e.getMessage(),e);
    throw new SpawningException(e.getMessage(),e);
  }
catch (  CloudControllerServiceInvalidIaasProviderExceptionException e) {
    String message=e.getFaultMessage().getInvalidIaasProviderException().getMessage();
    log.error(message,e);
    throw new SpawningException(message,e);
  }
}

Fixed version (ground truth):
public synchronized MemberContext spawnAnInstance(Partition partition,String clusterId,String networkPartitionId,String instanceID,boolean isPrimary,int minMemberCount) throws SpawningException {
  try {
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str" + "String_Node_Str",clusterId,partition.getId(),networkPartitionId));
    }
    XMLConfiguration conf=ConfUtil.getInstance(null).getConfiguration();
    long expiryTime=conf.getLong(StratosConstants.OBSOLETED_VM_MEMBER_EXPIRY_TIMEOUT,86400000);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + expiryTime);
    }
    MemberContext member=new MemberContext();
    member.setClusterId(clusterId);
    member.setPartition(partition);
    member.setInstanceId(instanceID);
    member.setObsoleteExpiryTime(expiryTime);
    member.setInitTime(System.currentTimeMillis());
    member.setNetworkPartitionId(networkPartitionId);
    Properties memberContextProps=new Properties();
    Property isPrimaryProp=new Property();
    isPrimaryProp.setName("String_Node_Str");
    isPrimaryProp.setValue(String.valueOf(isPrimary));
    Property minCountProp=new Property();
    minCountProp.setName("String_Node_Str");
    minCountProp.setValue(String.valueOf(minMemberCount));
    memberContextProps.addProperty(isPrimaryProp);
    memberContextProps.addProperty(minCountProp);
    member.setProperties(AutoscalerUtil.toStubProperties(memberContextProps));
    long startTime=System.currentTimeMillis();
    MemberContext memberContext=stub.startInstance(member);
    if (log.isDebugEnabled()) {
      long endTime=System.currentTimeMillis();
      log.debug(String.format("String_Node_Str",(endTime - startTime)));
    }
    return memberContext;
  }
 catch (  CloudControllerServiceUnregisteredCartridgeExceptionException e) {
    String message=e.getFaultMessage().getUnregisteredCartridgeException().getMessage();
    log.error(message,e);
    throw new SpawningException(message,e);
  }
catch (  RemoteException e) {
    log.error(e.getMessage(),e);
    throw new SpawningException(e.getMessage(),e);
  }
catch (  CloudControllerServiceInvalidIaasProviderExceptionException e) {
    String message=e.getFaultMessage().getInvalidIaasProviderException().getMessage();
    log.error(message,e);
    throw new SpawningException(message,e);
  }
}