2

我是documentum的新手,谁能建议我如何在documentum中获取文档的内容。我正在使用以下代码

document = (IDfSysObject) session.getObject(new DfId("some document id"));
document.getContent(); 

我收到以下错误:

DfSysObjectException:: THREAD: main; MSG: [DM_SYSOBJECT_E_INVALID_PAGE_NUM]error:  "Invalid page number = 0 for 0000868416 sysobject.  Maximum page count is 0."; ERRORCODE: 100; NEXT: null
at com.documentum.fc.client.DfSysObjectException.newInvalidPageNumberException(DfSysObjectException.java:47)
at com.documentum.fc.client.content.impl.ContentManager.verifyPageExists(ContentManager.java:151)
at com.documentum.fc.client.content.impl.ContentManager.getContentNoPermissionCheck(ContentManager.java:106)
at com.documentum.fc.client.content.impl.ContentManager.getContent(ContentManager.java:91)
at com.documentum.fc.client.content.impl.ContentManager.getStream(ContentManager.java:50)
at com.documentum.fc.client.DfSysObject.getContentEx3(DfSysObject.java:1952)
at com.documentum.fc.client.DfSysObject.getContentEx2(DfSysObject.java:1942)
at com.documentum.fc.client.DfSysObject.getContent(DfSysObject.java:1932)
at com.documentum.fc.client.DfDocument___PROXY.getContent(DfDocument___PROXY.java)

任何人都可以帮我解决上述错误吗?这是获取文档内容的正确方法吗

 document.getContent();

提前致谢

4

0 回答 0