IBM Support

IBM FileNet Content Engine Java API 3.5.2 returns "Unspecified error [Code=80004005]" when calling "getUserAccess(permissions, user)"

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)

[{"Product":{"code":"SSNVNV","label":"FileNet Content Manager"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Content Engine","Platform":[{"code":"PF033","label":"Windows"}],"Version":"3.5.2","Edition":"Advanced","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

To view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use the link to actual document below to access the full document. You will be asked to log on if you are not already logged in. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

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

Manage My Notification Subscriptions