Program: 134819
Project: 134819
Buggy source:
/** 
 * Starts the sampling, connecting to ACS Manager and the Sampling Manager.
 * @throws CouldntAccessComponentEx Component wasn't available at the time.
 * @throws TypeNotSupportedEx Sampling Manager specific exception. Some types are currently not supported in acssamp.
 * @throws CouldntAccessPropertyEx
 */
public void startSample() throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException {
  samp=new Sampler();
synchronized (this) {
    System.out.println(initializations);
    if (initializations == 0) {
      try {
        spinUp(SampTool.NAME,ssg.MAN_NAME);
      }
 catch (      AcsInformationException e) {
        System.out.print(e.getMessage());
        System.exit(-1);
      }
catch (      SamplingManagerException e) {
        System.out.print(e.getMessage());
        System.exit(-1);
      }
catch (      AcsJContainerEx e) {
        System.out.println(e.getMessage());
        System.exit(-1);
      }
    }
    initializations++;
  }
  try {
    SamplingManagerUITool.startSample(new SampDetail(component,property,(long)this.frequency,reportRate));
  }
 catch (  alma.ACSErrTypeCommon.CouldntAccessComponentEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  alma.ACSErrTypeCommon.TypeNotSupportedEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  CouldntAccessPropertyEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  SamplingManagerException e) {
    setComponentAvailable(false,e.getMessage());
    throw e;
  }
  samp.start();
}

Fixed version (ground truth):
/** 
 * Starts the sampling, connecting to ACS Manager and the Sampling Manager.
 * @throws CouldntAccessComponentEx Component wasn't available at the time.
 * @throws TypeNotSupportedEx Sampling Manager specific exception. Some types are currently not supported in acssamp.
 * @throws CouldntAccessPropertyEx
 */
public void startSample() throws CouldntAccessComponentEx, TypeNotSupportedEx, CouldntAccessPropertyEx, SamplingManagerException {
  samp=new Sampler();
synchronized (this) {
    System.out.println("String_Node_Str" + initializations);
    if (initializations == 0) {
      try {
        spinUp(SampTool.NAME,ssg.MAN_NAME);
      }
 catch (      AcsInformationException e) {
        System.out.print(e.getMessage());
        System.exit(-1);
      }
catch (      SamplingManagerException e) {
        System.out.print(e.getMessage());
        System.exit(-1);
      }
catch (      AcsJContainerEx e) {
        System.out.println(e.getMessage());
        System.exit(-1);
      }
    }
    initializations++;
  }
  try {
    SamplingManagerUITool.startSample(new SampDetail(component,property,(long)this.frequency,reportRate));
  }
 catch (  alma.ACSErrTypeCommon.CouldntAccessComponentEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  alma.ACSErrTypeCommon.TypeNotSupportedEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  CouldntAccessPropertyEx e) {
    setComponentAvailable(false,"String_Node_Str");
    throw e;
  }
catch (  SamplingManagerException e) {
    setComponentAvailable(false,e.getMessage());
    throw e;
  }
  samp.start();
}