5 Replies Latest reply on Jun 25, 2008 8:11 PM by 666705

    getting a NoSuchRepositoryConfigException

    666705
      Hi,
      I am trying to get a Node object from a node Id. I am writing the following code:

      INodeManager nodeMgr = ContentManagerFactory.getNodeManager();
      ContentContext ctx = new ContentContext();
      Node node = nodeMgr.getNodeByUUID(ctx, id); // here id is the node id

      I am getting the following exception:

      com.bea.content.manager.NoSuchRepositoryConfigException: Error finding repository: .
      at com.bea.content.manager.internal.RepositoryOpsBean.createConfigFromBean(RepositoryOpsBean.java:437)
      at com.bea.content.manager.internal.RepositoryOpsBean.getRepositoryConfig(RepositoryOpsBean.java:334)
      at com.bea.content.manager.internal.RepositoryOpsEJB_y9bnjx_ELOImpl.getRepositoryConfig(RepositoryOpsEJB_y9bnjx_
      ELOImpl.java:68)
      at com.bea.content.manager.internal.CacheHelper.getNodeCache(CacheHelper.java:155)
      at com.bea.content.manager.internal.CacheHelper.getNodeCacheEntry(CacheHelper.java:853)
      at com.bea.content.manager.internal.InternalNodeOpsBean.getNode(InternalNodeOpsBean.java:799)
      at com.bea.content.manager.internal.InternalNodeOpsBean.getNode(InternalNodeOpsBean.java:1900)
      at com.bea.content.manager.internal.NodeOpsEJB_ihurl6_ELOImpl.getNode(NodeOpsEJB_ihurl6_ELOImpl.java:601)
      at com.bea.content.manager.internal.NodeOpsImpl.getNode(NodeOpsImpl.java:607)
      at com.bea.content.federated.internal.NodeManagerImpl.getNodeByUUID(NodeManagerImpl.java:262)

      Is there any config that I am missing? I checked my server console and I have a datasource defined as dbCMS which is being referred as the CMS repository in my weblogic console content management page. What am I missing? Any help is much appreciated.
      Thanks in advance!