我是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();
提前致谢