How to get the content of a document in documentum

2.5k Views Asked by At

I am new to documentum,can anyone suggest me how to get the content of a document in documentum. I am using the following code

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

I am getting the following error:

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)

Can any one please help me with the above error and Is it the right way to get the content of a document with

 document.getContent();

Thanks in advance

0

There are 0 best solutions below