`
sujianchinaouya
  • 浏览: 55337 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

CC Type manager text_file_delta failed create_version operation

 
阅读更多
Problem(Abstract)
This technote provides a method to confirm the existence of a corrupt source container in an IBM® Rational® ClearCase® VOB based on a checkin error related to text files being referenced as a binary file along with steps to try and fix the container.
Symptom

Attempts to complete a checkin results in the following error:


Error checking in 'M:/View/VOB/dir1/dir2/foo.c' text_file_delta: Error: "foo.c" is not a 'text file': it contains a '/000'. This object's type does not support check-in of binary data.

Use a different type manager (such as compressed file). cleartool: Error: Type manager "text_file_delta" failed create_version operation. cleartool: Error: Unable to check in "foo.c".

Cause
  1. If this error arises the first time checking in a file (or during a file import process), the file likely has a file extension suffix the cc.magic file would consider a text_file element type or the opening block of the file is in text but there are other parts of the file which contain binary data.

    To confirm whether a file contains a '/000' you can run the following test on the file using ccperl on Windows® or Perl on UNIX® or Linux®:

    Example:
    ccperl -e "print(@null=grep(//000/,<>)?'Contains nulls':'No nulls found')" "foo.c"
  2. There may be a corrupt source container. Check for indicators of a corrupt source container:
    • Confirm that the file in question is in fact a text file.
      1. Copy the file to the operating system (outside of ClearCase) and open with a text editor.
      2. Ensure there are no binary characters in the file.
    • Attempt to change the element type using the cleartool chtype command and retry the checkin. If the same error occurs during checkin, there is a problem with the source container.
  • Note: Some type manager errors on Windows are reported in the Windows Application Log (Source:ClearCase, Category:Debug). Therefore, when performing the checkin operation on Windows the error below will be displayed and the more detailed message as noted above will be reported in the Application Log.

    cleartool: Error Type manager "text_file_delta". failed create_version operation.
    cleartool: Error: Unable to check in "testfile".
Resolving the problem
The solution for Cause 1 has two different options. Choose the one that is right for your needs.

OPTION 1

Change the type manager of the file stored as text_file to a different type manager and checkin in the file.

  1. Run cleartool chtype compressed_file <filename> while the file is still checked out from /main/0

    or
  2. Remove the element (or rmname the element if this is a UCM environment).


OPTION 2

Manually remove the null characters in the file.
  • Linux and UNIX
    The following commands are examples of the kinds of methods which could be used to pull out the null characters in a file. They are not the only methods available.

    Option #1

    perl -pi -e 's//x00//g' file_name

    This command does a global replace on the null character and replaces it with nothing on the file specified.



    Option #2


    awk '{gsub("/000","");print}' file_name > file_name

    This command will also replace all the null characters with nothing.
  • Windows
    1. Open the file in a hex editor such as XVI32 .
      Note:
      XVI32 is a freeware hex editor.
    2. Click Search > Replace
    3. Enter 00 (two zeros) in the find Hex field.
    4. Leave the replace field empty.
    5. Click OK and save as original file name.


You will now be able to check the file in.

如果是windows 的话可能是如下原因:

  1. There may be a corrupt source container. Check for indicators of a corrupt source container:
Confirm that the file in question is in fact a text file.
  1. Copy the file to the operating system (outside of ClearCase) and open with a text editor.
  2. Ensure there are no binary characters in the file.

确保你的文件里没有二进制的文件。

分享到:
评论

相关推荐

    FileManager_filemanager_FileManager_itselflba_java_

    【标题】"FileManager_filemanager_FileManager_itselflba_java_" 指的是一款基于Java编程语言的文件管理器源码项目,名为"FileManager"。这个项目由itselflba开发,旨在提供一个基础的文件管理和操作功能,对于初学...

    oi.zip_PHP FILE MANAGER_file manager php_oi

    标签"php_file_manager"和"file_manager__php oi"强化了这个项目的核心功能,即PHP驱动的文件管理。"oi"可能是一个特定的标识符或者项目的简称。 压缩包中的"oi.php"是这个文件管理器应用的主要源代码文件。在PHP中...

    The_Sublime_Text_package_manager_package_control.zip

    The_Sublime_Text_package_manager_package_control

    FileManager_FileManager_AppDemo_android_

    【FileManager_AppDemo_android_】是一个基于Android平台的文件管理器应用源码,它提供了7个不同的示例,展示了如何在Android设备上实现文件和目录的浏览、管理功能。这个项目对于学习Android应用开发,特别是对文件...

    Laravel开发-laravel_file_manager

    在本文中,我们将深入探讨基于Laravel框架的文件管理器包——laravel_file_manager。这个包是由ArtinCMS官方提供的,旨在为Laravel开发者提供一个高效、便捷的文件管理解决方案,帮助他们更好地处理应用程序中的文件...

    Salary_OfficeManager_operation_

    "Salary_OfficeManager_operation_"所描述的是一款专为办公环境设计的薪资管理软件,它以其简单易用的操作特性,为人事部门提供了一种便捷的薪资处理解决方案。下面我们将深入探讨这款软件的主要功能、操作流程及其...

    WinCE_CAB_Manager3.0_绿色破解版

    WinCECAB Manager3.0.0.2 绿色破解版.先解压出来。然后运行绿化软件。然后打开程序就可以使用了!

    FileManager_android_

    本篇将深入探讨一个名为"FileManager_android_"的开源项目,通过分析其源码,我们将了解如何构建一个功能完善的Android文件浏览器。 首先,我们要理解Android文件系统的结构。Android基于Linux内核,因此其文件系统...

    phpcms_file_manager_403.zip_phpcms

    《phpcms_file_manager_403.zip_phpcms:深入理解Web文件管理器与PHP编程实践》 在Web开发领域,文件管理器是不可或缺的一部分,它允许用户通过Web界面进行文件上传、下载、删除和编辑等操作。"phpcms_file_manager...

    [文件数据]PHPCMS 文件管理器(原Longbill文件管理器) v4.03_phpcms_file_manager_403

    [文件数据]PHPCMS 文件管理器(原Longbill文件管理器) v4.03_phpcms_file_manager_403[文件数据]PHPCMS 文件管理器(原Longbill文件管理器) v4.03_phpcms_file_manager_403 1.适合个人搭建网站项目参考 2.适合学生毕业...

    X-Plore_File_Manager_Donate_v4.24.20_build_42420.apk

    X - plore是双窗格文件管理器,具有树视图,LAN / FTP / Root / Clouds等。 ●双窗格树视图 ●根,FTP,SMB,Sqlite,Picasa,Zip,Rar,7zip资源管理器 ●云存储访问:Google Drive™,Dropbox,...●应用程序管理器 ...

    DeltaRecovery_v1.23_filemanager_hexview_

    标题 "DeltaRecovery_v1.23_filemanager_hexview_" 暗示这是一款名为 DeltaRecovery 的软件,版本号为 v1.23,它包含一个文件管理器和一个十六进制查看器功能。这款工具的主要目的是帮助用户恢复已删除的文件,同时...

    trace_FileManager

    trace_FileManager

    sdkmanager_2.0.0-11405_amd64.deb

    sdkmanager_2.0.0-11405_amd64.deb

    EMS_SQL_Manager2007_for_MySQL_v4..zip

    EMS_SQL_Manager2007_for_MySQL_v4..zipEMS_SQL_Manager2007_for_MySQL_v4..zipEMS_SQL_Manager2007_for_MySQL_v4..zipEMS_SQL_Manager2007_for_MySQL_v4..zip

    internet_download_manager_6.38.3.zip

    internet_download_manager_internet_download_manager_internet_download_manager_internet_download_manager_internet_download_manager_internet_download_manager_internet_download_manager_internet_download_...

    文件管理器源码Leelen_FileManager_Micode,管理指定目录下的文件

    Leelen_FileManager_Micode在开源源码https://github.com/brucend/FileManager_Micode的基础上进行修改,实现传入具体目录路径,管理该目录下的文件。 具体详见博文:http://write.blog.csdn.net/postedit/50687406

    MiXplorer_Silver_File_Manager_v6.50.1-Silver_build_21011711.apk

    Mi File Explorer是一个了不起的文件管理器。 MiXplorer是一款快速,流畅,美观且功能齐全的文件管理器,具有简单的用户界面。 这个程序是完全免费的,没有广告,也永远不会成为付费应用程序。 它支持Android 2.0+...

    OPL_Manager_V17.rar

    《PS2游戏资源管理器——OPL_Manager_V17详解》 在电子游戏的历史长河中,PlayStation 2(简称PS2)以其强大的游戏库和广泛的用户基础,始终占据着重要的地位。对于PS2玩家而言,管理和组织游戏资源是一项不可或缺...

Global site tag (gtag.js) - Google Analytics