简体   繁体   中英

CmisObjectNotFoundException : Repository does not exist

Using a CMISTestClient, I am trying to connect with documentum repository. There are no exceptions at weblogic server logs(having server at localhost, where ear is deployed) but my standalone client is throwing exception as CmisObjectNotFoundException: Repository does not exist. Client implementation is as below. Need help, so that a session is created with the repository. Also, the repository(hosted on different server, not localhost) already exist in documentum with same id as used in below session parameters.

import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.chemistry.opencmis.client.api.CmisObject;
import org.apache.chemistry.opencmis.client.api.Document;
import org.apache.chemistry.opencmis.client.api.Folder;
import org.apache.chemistry.opencmis.client.api.ItemIterable;
import org.apache.chemistry.opencmis.client.api.Repository;
import org.apache.chemistry.opencmis.client.api.Session;
import org.apache.chemistry.opencmis.client.api.SessionFactory;
import org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl;
import org.apache.chemistry.opencmis.commons.PropertyIds;
import org.apache.chemistry.opencmis.commons.SessionParameter;
import org.apache.chemistry.opencmis.commons.data.ContentStream;
import org.apache.chemistry.opencmis.commons.data.RepositoryCapabilities;
import org.apache.chemistry.opencmis.commons.data.RepositoryInfo;
import org.apache.chemistry.opencmis.commons.enums.BindingType;
import org.apache.chemistry.opencmis.commons.enums.VersioningState;

public class CMISClientTests {
    
    public static void main(String[] args) {
        System.out.println("Start now ");
        
        
        SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
        Map<String, String> parameter = new HashMap<String, String>();
         
        
        parameter.put(SessionParameter.USER, "weblogic");
        parameter.put(SessionParameter.PASSWORD, "weblogic11g");        
        parameter.put(SessionParameter.ATOMPUB_URL, "http://ehs-edm-dvst-001.ehs.state.ma.us:53033/cmis/resources"); 
        
    
        parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
        
        parameter.put(SessionParameter.REPOSITORY_ID, "repos_test_qa");
        Session session = sessionF`enter code here`actory.createSession(parameter);
    }
    }
    

Have you configured dfc.properties on cmis deployment? Does http://ehs-edm-dvst-001.ehs.state.ma.us:53033/cmis/ show something? It looks like either a mis-configuration of the emc-cmis' dfc.properties or a communication problem between weblogic and Documentum

Anyway you have to see some error on Weblogic's logs, as CMIS implementation by Opentext runs DFC under the hood, so the DFC errors are there

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM