Topic
1 reply Latest Post - ‏2012-10-25T21:32:35Z by SystemAdmin
SystemAdmin
SystemAdmin
40 Posts
ACCEPTED ANSWER

Pinned topic When is an FPOS not an FPOS ?

‏2012-08-15T19:48:59Z |
I have a VMWare demo machine with everything on it (5.1) CE, WorkPlace XT and IER. Actually, it is the student machine used for the Case Manager classroom class. The file plan is all set up on the FPOS, and I am able to declare records using the WorkPlace XT client without a problem.

Trying to establish an RMObjectStore object using the RM API set tells me it is not a file plan object store. Any help?

Here's the simple code segment that fails, and the error messages:
import com.filenet.rm.api.RMObjectStore;
import com.filenet.rm.api.util.RMUtil;
import com.filenet.wcm.api.ObjectFactory;
import com.filenet.wcm.api.ObjectStore;
import com.filenet.wcm.api.Session;

public class testSession {
public static void main(String[] args) {

String userId = "p8admin";
String password = "filenet";
String appId = "test.testSession";
String objectStoreName = "FPOS";
String remoteServerURL = "iiop://ecmdemo1:2809/FileNet/Engine";

Session loSession = ObjectFactory.getSession(appId, null, userId, password);
loSession.setRemoteServerUrl(remoteServerURL);
ObjectStore os = com.filenet.wcm.api.ObjectFactory.getObjectStore(objectStoreName, loSession);
RMObjectStore rmos = RMUtil._getRMObjectStore((com.filenet.wcm.api.ObjectStore) os); // Failing Line <-
System.out.println(rmos.getName());
}
}
ERROR main - FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.

ERROR main - FNRRA4570E: Unable to set the passed object store as the Base Object FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.

ERROR main - FNRRA5203E: Unable to return an instance of RMObjectStore for the object store WCM: ObjectStoreImpl with id FPOS in lib FPOS, which is passed as a parameter.
FNRRA4570E: Unable to set the passed object store as the Base Object FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.

Exception in thread "main" com.filenet.rm.api.exception.RMException: FNRRA5203E: Unable to return an instance of RMObjectStore for the object store WCM: ObjectStoreImpl with id FPOS in lib FPOS, which is passed as a parameter.

FNRRA4570E: Unable to set the passed object store as the Base Object FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.
at com.filenet.rm.api.exception.RMException.createRMException(RMException.java:299)
at com.filenet.rm.api.exception.RMException.getRMException(RMException.java:248)
at com.filenet.rm.api.util.RMUtil._getRMObjectStore(RMUtil.java:7500)
at test.testSession.main(testSession.java:27)
Caused by: com.filenet.rm.api.exception.RMException: FNRRA4570E: Unable to set the passed object store as the Base Object FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.
at com.filenet.rm.api.exception.RMException.createRMException(RMException.java:299)
at com.filenet.rm.api.exception.RMException.getRMException(RMException.java:248)
at com.filenet.rm.api.impl.RMObjectStoreImpl.<init>(RMObjectStoreImpl.java:137)
at com.filenet.rm.api.util.RMUtil._getRMObjectStore(RMUtil.java:7489)
... 1 more
Caused by: com.filenet.rm.api.exception.RMException: FNRRA5022E: Passed object store WCM: ObjectStoreImpl with id FPOS in lib FPOS do not support File Plans, the object store is not a valid File Plan object store.
at com.filenet.rm.api.exception.RMException.createRMException(RMException.java:299)
at com.filenet.rm.api.exception.RMException.getRMException(RMException.java:248)
at com.filenet.rm.api.impl.RMObjectStoreImpl.<init>(RMObjectStoreImpl.java:117)
... 2 more
Updated on 2012-10-25T21:32:35Z at 2012-10-25T21:32:35Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    40 Posts
    ACCEPTED ANSWER

    Re: When is an FPOS not an FPOS ?

    ‏2012-10-25T21:32:35Z  in response to SystemAdmin
    Late response but if you are still looking for an answer.

    It's a number of things like presence of certain classes (like SystemConfiguration) and properties and etc.

    Is it a valid FPOS? Or are there things missing in it?