Documentum几个常见的异常

[DM_STORAGE_E_MKDIR_FAILED]

 

01 Apr 2010 10:45:04,600 DfException:: THREAD: ExecuteThread: '82' for queue: 'weblogic.kernel.Default'; MSG: [DfException Occured in Class:AttachWorkFlow     Method:startWorkFlow():DfException::     THREAD: ExecuteThread: '82' for queue: 'weblogic.kernel.Default'; MSG: [DM_SYSOBJECT_E_CANT_SAVE]error:  "Cannot save  sysobject."

    01 Apr 2010 10:45:04,600 [DM_STORAGE_E_MKDIR_FAILED]error:  "Cannot create storage directory /xxx/xx/xx/xx/xx/content_storage_01/00011e75/80/0a/ce,     Method dmSetUpFile(),     Operating system error:  errno: 2, message: No such file or directory, Retry Count = 2"


[DM_STORAGE_E_MKDIR_FAILED]

 

Severity:   ERROR

Message:   Cannot create storage directory %s

Cause:   This error is given whenever an error is encountered during the create index step of blobstore creation. It alerts the user that the index creation will fail if another blobstore exists with a similar store name.

Action:   Check to see if the blobstore being created has a unique name. Also check the database error given by the previous error message for more information on the create-index failure.

 

 

For our app,the cause for the exception is the desk of the content server is full,thus,use can't upload

any file and attach it to workflow.

我今天遇到这个问题,原因是content server的磁盘空间不足,导致用户不能把文件添加到相应的workflow,所以sysobj

的保存也失败了。

 

[DM_OBJECT_W_SET_ATTR_STRING_TOO_LONG]

"attempt to assign string of excessive length to attribute %i"

CAUSE: Program executed a Set operation to assign a string that is longer than the maximum size allowed for the attribute.

ACTION: No action.

PARAMETERS: The number of the attribute being set.

 

向目标字段存储的string太长了,超长的部分会被截掉。比如attribute name 是 string(2),但你的update 语句是update xx object set name= 'CSDN'....那么'DN'会被截掉,只有'CS'会被保存。

 

DM_SYSOBJECT_E_CANT_CHANGE_PERMITS

Severity: ERROR

Message Text: Only the %s sysobject owner, superuser, and anyone with the write and change_permit permits can change permits.

Cause: A user, other than a superuser or sysobject owner, tried to change security permits In ACL security mode, anyone with the WRITE and CHANGE_PERMIT permits are allowed to change security permits.

Action: None.

 

权限不足是不能够改变sysobject的权限的

D M_SYSOBJECT_E_CANT_CHANGE_OWNER

Severity: ERROR

Message Text: Must be a superuser/owner or anyone with the write and change_owner permits to change the owner_name to '%s'."

Cause: Only a superuser can change the owner_name attribute of a sysobject. In ACL mode, we allow anyone with the write and change_owner permits to change the owner of the object.

Action: None.

 

权限不足是不能够改变sysobject的owner的.但是即使你是这个sysobject 的owner但不是superuser ,调用setOwnerName还是要小心。

 

IDfSysObject obj = (IDfSysObject) getDfSession().newObject(<object_tpyp_name>);

obj.set。。。

obj.setOwnerName("XX");

obj.set。。。

obj.save();

 

上边这个逻辑是会抛出异常的。所以得这样修改

IDfSysObject obj = (IDfSysObject) getDfSession().newObject(<object_tpyp_name>);

obj.set。。。

obj.save();

obj.setOwnerName("XX");

obj.set。。。

obj.save();

为了防止出现其他错误使得obj的保存不完整,还得加上事务处理@@!

 

 

 

<!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:"Times New Roman"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-alt:"Century Gothic"; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"/@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"Times New Roman"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:SimSun; mso-fareast-theme-font:minor-fareast;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:99.25pt 85.05pt 85.05pt 85.05pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->

 


 


 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值