// Get all storagearea objects through ObjectStore. ceutil is a tool class encapsulated by me to get ObjectStore
ObjectStore OS = ceutil. getstore ();
Storageareaset areaset = OS. get_storageareas ();
Run the above Code and the ObjectStore is obtained successfully. The following error occurs when the storagearea is obtained:
Exception in thread "Main" com. filenet. API. Exception. engineruntimeexception:Fnrcs0005e: security_invalid_credentials: Access to the Content Engine was not allowed because the Content Engine api library or the Web Service Interface (WSI) Listener cocould not find the required security context information. expected credentials were not found in the security context.
At com. filenet. apiimpl. WSI. clientoperation. getcredential (clientoperation. Java: 361)
At com. filenet. apiimpl. WSI. clientoperation. getsoapenvelopesecurity (clientoperation. Java: 294)
At com. filenet. apiimpl. WSI. servicesessionnst. bstartxmldocument (servicesessionnst. Java: 847)
At com. filenet. apiimpl. WSI. servicesessionnst. creqresppath (servicesessionnst. Java: 155)
At com. filenet. apiimpl. WSI. servicesessionnst. getobjects (servicesessionnst. Java: 104)
At com. filenet. apiimpl. util. sessionhandle. getobjects (sessionhandle. Java: 381)
At com. filenet. apiimpl. Core. session. callgetobjects (session. Java: 122)
At com.filenet.apiimpl.core.session.exe cutegetobject (session. Java: 327)
At com. filenet. apiimpl. Core. session. getproperty (session. Java: 450)
At com. filenet. apiimpl. Property. propertyimpl. fetchvalue (propertyimpl. Java: 355)
At com. filenet. apiimpl. Property. propertyimpl. getobjectvalue (propertyimpl. Java: 295)
At com. filenet. apiimpl. Property. propertyimpl. getobjectvalue (propertyimpl. Java: 276)
At com. filenet. apiimpl. Property. propertyimpl. getindependentobjectsetvalue (propertyimpl. Java: 589)
At com. filenet. apiimpl. Property. propertiesimpl. getindependentobjectsetvalue (propertiesimpl. Java: 1191)
At com. filenet. apiimpl. Core. objectstoreimpl. get_storageareas (objectstoreimpl. Java: 621)
Error cause:
Although I get the ObjectStore either correctly or correctly, the following code is executed when I get the ObjectStore:
Usercontext UC = usercontext. Get ();
....
UC. popsubject (); // The authentication is completed in advance.
Solution:
After the objectsotre operation is completed, the authentication is completed.