Program: 116612
Project: 116612
Buggy source:
public MemberContext spawnAnInstance(Partition partition,String clusterId,String lbClusterId,String networkPartitionId) throws SpawningException {
  try {
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",clusterId,partition.getId(),lbClusterId,networkPartitionId));
    }
    MemberContext member=new MemberContext();
    member.setClusterId(clusterId);
    member.setPartition(partition);
    member.setLbClusterId(lbClusterId);
    member.setInitTime(System.currentTimeMillis());
    member.setNetworkPartitionId(networkPartitionId);
    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 (  CloudControllerServiceIllegalArgumentExceptionException e) {
    log.error(e.getMessage(),e);
    throw new SpawningException(e.getMessage(),e);
  }
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 (  CloudControllerServiceIllegalStateExceptionException 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 MemberContext spawnAnInstance(Partition partition,String clusterId,String lbClusterId,String networkPartitionId) throws SpawningException {
  try {
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",clusterId,partition.getId(),lbClusterId,networkPartitionId));
    }
    MemberContext member=new MemberContext();
    member.setClusterId(clusterId);
    member.setPartition(partition);
    member.setLbClusterId(lbClusterId);
    member.setInitTime(System.currentTimeMillis());
    member.setNetworkPartitionId(networkPartitionId);
    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 (  CloudControllerServiceIllegalArgumentExceptionException e) {
    log.error(e.getMessage(),e);
    throw new SpawningException(e.getMessage(),e);
  }
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);
  }
}