Question & Answer
Question
Version: CE 3.5.2 Patch#11 on Window 2003 Advanced Server AE 3.5.1 Patch#11 on AIX 5.3 Websphere 6.1 Why does an error occur when calling the IBM FileNet Content Engine Java API to filter a set of documents based on user's permission using "getUserAccess(permissions, user)"? The following code is used: +++++++++++++++++++++++++++++++++++ import com.filenet.wcm.api.*; import java.io.File; import java.io.FileInputStream; import java.util.*; public class CEProc { public static void main(String[] args) throws Exception { try { Session session = ObjectFactory.getSession("MyAppId", Session.DEFAULT, "Test", "Test"); session.setConfiguration(new FileInputStream ("WcmApiConfig.properties")); session.verify(); ObjectStore objstore = ObjectFactory.getObjectStore("TESTOBJ", session); String guidOrPath ="/Test Folder/WordDoc001"; Document document = (Document)objstore.getObject(BaseObject.TYPE_DOCUMENT, guidOrPath); System.out.println("GET PERMISSION"); Permissions permissions = document.getUserAccess(Property.PERMISSIONS, "Administrator"); } catch (Exception e) { e.printStackTrace(); } } } +++++++++++++++++++++++++++++++++++ The error below is returned when the Administrator has access to some documents within this folder: +++++++++++++++++++ com.filenet.wcm.api.RemoteServerException: Content Engine COM API error. Unspe fied error [Code=80004005] ... Object Reference [DOCUMENT:1] ID "/Test Fo er/WordDoc001" in ObjectStore "TESTOBJ"; OMFC/Document/GetUserAccess/Server.Unkn n.80004005 at com.filenet.wcm.api.impl.soapenc.SOAPFacilities.convertSoapFault(SO Facilities.java:414) at com.filenet.wcm.api.impl.soapenc.RcAs.dealWithResponse(RcAs.java:36 at com.filenet.wcm.api.impl.soapenc.RcAs.doRpcRecursive(RcAs.java:167) at com.filenet.wcm.api.impl.soapenc.RcAs.doRpc(RcAs.java:89) at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:4 ) at com.filenet.wcm.api.impl.RemoteCommand.executeInner(RemoteCommand.j a:398) at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:3 ) at com.filenet.wcm.api.impl.RemoteCommand.executeExpectingPermissions( moteCommand.java:267) at com.filenet.wcm.api.impl.BaseObjectImpl.getUserAccess(BaseObjectImp java:1572) at com.filenet.wcm.api.impl.BaseObjectImpl.getUserAccess(BaseObjectImp java:1539) at CEProc.main(CEProc.java:23) ++++++++++++++++++++++++++++ When passing in a user that has no permissions to documents, the error below occurs: ++++++++++++++++++++++++++++ com.filenet.wcm.api.RemoteServerException: Content Engine COM API error. No mapp ing between account names and security IDs was done. [Code=80070534] ... Objec t Reference [DOCUMENT:1] ID "/Test Folder/WordDoc001" in ObjectStore "TESTOBJ"; OMFC/Document/GetUserAccess/Server.Unknown.80070534 at com.filenet.wcm.api.impl.soapenc.SOAPFacilities.convertSoapFault(SOAP Facilities.java:414) at com.filenet.wcm.api.impl.soapenc.RcAs.dealWithResponse(RcAs.java:366) at com.filenet.wcm.api.impl.soapenc.RcAs.doRpcRecursive(RcAs.java:167) at com.filenet.wcm.api.impl.soapenc.RcAs.doRpc(RcAs.java:89) at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:416 ) at com.filenet.wcm.api.impl.RemoteCommand.executeInner(RemoteCommand.jav a:398) at com.filenet.wcm.api.impl.RemoteCommand.execute(RemoteCommand.java:330 ) at com.filenet.wcm.api.impl.RemoteCommand.executeExpectingPermissions(Re moteCommand.java:267) at com.filenet.wcm.api.impl.BaseObjectImpl.getUserAccess(BaseObjectImpl. java:1572) at com.filenet.wcm.api.impl.BaseObjectImpl.getUserAccess(BaseObjectImpl. java:1539) at CEProc.main(CEProc.java:23)
To view more of this document
Was this topic helpful?
Document Information
More support for:
FileNet Content Manager
Software version:
3.5.2
Operating system(s):
Windows
Document number:
389093
Modified date:
28 April 2025
UID
swg21388583