Program: 105228
Project: 105228
Buggy source:
private void upgradeVmwareLabels(Connection conn){
  String newLabel;
  String trafficType=null;
  String trafficTypeVswitchParam;
  String trafficTypeVswitchParamValue;
  try (PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    try (ResultSet rsParams=pstmt.executeQuery()){
      while (rsParams.next()) {
        trafficTypeVswitchParam=rsParams.getString("String_Node_Str");
        trafficTypeVswitchParamValue=rsParams.getString("String_Node_Str");
        if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
 else         if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
 else         if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
        try (PreparedStatement sel_pstmt=conn.prepareStatement("String_Node_Str")){
          pstmt.setString(1,trafficType);
          try (ResultSet rsLabel=sel_pstmt.executeQuery()){
            newLabel=getNewLabel(rsLabel,trafficTypeVswitchParamValue);
            try (PreparedStatement update_pstmt=conn.prepareStatement("String_Node_Str" + newLabel + "String_Node_Str"+ trafficType+ "String_Node_Str")){
              s_logger.debug("String_Node_Str" + trafficType + "String_Node_Str"+ pstmt);
              update_pstmt.executeUpdate();
            }
 catch (            SQLException e) {
              throw new CloudRuntimeException("String_Node_Str",e);
            }
          }
 catch (          SQLException e) {
            throw new CloudRuntimeException("String_Node_Str",e);
          }
        }
 catch (        SQLException e) {
          throw new CloudRuntimeException("String_Node_Str",e);
        }
      }
    }
 catch (    SQLException e) {
      throw new CloudRuntimeException("String_Node_Str",e);
    }
  }
 catch (  SQLException e) {
    throw new CloudRuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
private void upgradeVmwareLabels(Connection conn){
  String newLabel;
  String trafficType=null;
  String trafficTypeVswitchParam;
  String trafficTypeVswitchParamValue;
  try (PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    try (ResultSet rsParams=pstmt.executeQuery()){
      while (rsParams.next()) {
        trafficTypeVswitchParam=rsParams.getString("String_Node_Str");
        trafficTypeVswitchParamValue=rsParams.getString("String_Node_Str");
        if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
 else         if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
 else         if (trafficTypeVswitchParam.equals("String_Node_Str")) {
          trafficType="String_Node_Str";
        }
        try (PreparedStatement sel_pstmt=conn.prepareStatement("String_Node_Str")){
          pstmt.setString(1,trafficType);
          try (ResultSet rsLabel=sel_pstmt.executeQuery()){
            newLabel=getNewLabel(rsLabel,trafficTypeVswitchParamValue);
            try (PreparedStatement update_pstmt=conn.prepareStatement("String_Node_Str")){
              s_logger.debug("String_Node_Str" + trafficType + "String_Node_Str"+ pstmt);
              pstmt.setString(1,newLabel);
              pstmt.setString(2,trafficType);
              update_pstmt.executeUpdate();
            }
 catch (            SQLException e) {
              throw new CloudRuntimeException("String_Node_Str",e);
            }
          }
 catch (          SQLException e) {
            throw new CloudRuntimeException("String_Node_Str",e);
          }
        }
 catch (        SQLException e) {
          throw new CloudRuntimeException("String_Node_Str",e);
        }
      }
    }
 catch (    SQLException e) {
      throw new CloudRuntimeException("String_Node_Str",e);
    }
  }
 catch (  SQLException e) {
    throw new CloudRuntimeException("String_Node_Str",e);
  }
}