Help with session manager

smurphy625
edited August 4, 2014 in Documentum #1

Hello everyone,

I need help using session manager. I have created the session and no I need to be able to use the session in order to create a folder. The session is only called from an admin so they will always have the permission to create the folder.

Here is what I have so far.

IDfSession sessionFC = null;
   IDfSessionManager sessionManagerFC = null;
  
   DfClientX clientx = new DfClientX();
   IDfClient client = clientx.getLocalClient();
    
    sessionManagerFC = client.newSessionManager();

    sessionFC = sessionManagerFC.getSession(docbase);
   
   IDfSysObject folder = null;
   folder = (IDfSysObject) sessionFC.newObject("dm_folder");

I am currently getting the following error occuring at the underlined part in my code.

DfIdentityException:: THREAD: http-bio-8080-exec-1; MSG: [DFC_BOF_WRONG_IDENTITY

] LoginInfo and Principal for "it_dev" docbase are not defined or wrong.; ERRORC

ODE: 1906; NEXT: null

Comments

  • lastnitescurry
    edited August 4, 2014 #2
    • You will need
      • folder.setObjectName("Some old pAddy Farmer");
      • folder.save();
    • Your Global Registry settings are wrong in dfc.properties file.
    • This is what I have for my D7.1 development vm

    dfc.globalregistry.repository=AllSpark

    dfc.globalregistry.username=dm_bof_registry

    dfc.globalregistry.password=AAAAECdC5fr1jYPp6ze3Ng3igG7e8ZmOBGeBo4tJToTToDtA