Hi Expert,
i am setting up the composer for new training environment.
started a simple code to get session:
_package com.training.dctm.util;
import com.documentum.com.DfClientX;
import com.documentum.com.IDfClientX;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.common.DfException;
import com.documentum.fc.common.IDfLoginInfo;
public class Connect_Repo {
public static void main(String[] args) throws DfException {
IDfClientX cx = new DfClientX();
IDfClient client = cx.getLocalClient();
IDfSessionManager SessMgr = client.newSessionManager();
IDfLoginInfo Li = cx.getLoginInfo();
Li.setUser("myuser");
Li.setPassword("mypassword");
Li.setDomain("");
SessMgr.setIdentity("mydocbase", Li);
IDfSession session = SessMgr.getSession("mydocbase");
System.out.println("session connected ::=> "+session);
SessMgr.release(session);
}
}_
this is giving me the error as -
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.rsa.jcm.c.ht.(Unknown Source)
at com.rsa.jcm.c.cl.a(Unknown Source)
at com.rsa.jcm.c.cl.f(Unknown Source)
at com.rsa.jcm.c.cl.b(Unknown Source)
at com.rsa.jcm.c.kb.newSecureRandom(Unknown Source)
at com.rsa.cryptoj.o.cv.a(Unknown Source)
at com.rsa.cryptoj.o.cl.b(Unknown Source)
at com.rsa.cryptoj.o.cl.a(Unknown Source)
at com.rsa.jsafe.JSAFE_SecureRandom.a(Unknown Source)
at com.rsa.jsafe.JSAFE_SecureRandom.getInstance(Unknown Source)
at com.documentum.fc.client.security.internal.CreateIdentityCredential$MultiFormatPKIKeyPair.(CreateIdentityCredential.java:601)
at com.documentum.fc.client.security.internal.CreateIdentityCredential.(CreateIdentityCredential.java:98)
at com.documentum.fc.client.security.impl.InitializeKeystoreForDfc.execute(InitializeKeystoreForDfc.java:46)
at com.documentum.fc.client.security.internal.KeystoreMgr.initForDfcWithDefaultPolicy(KeystoreMgr.java:71)
at com.documentum.fc.client.security.impl.IdentityManager.initFromKeystore(IdentityManager.java:139)
at com.documentum.fc.client.security.impl.IdentityManager.(IdentityManager.java:41)
at com.documentum.fc.impl.RuntimeContext.(RuntimeContext.java:52)
at com.documentum.fc.impl.RuntimeContext.(RuntimeContext.java:185)
at com.documentum.fc.client.DfClient.(DfClient.java:772)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.pge.dctm.util.Connect_Repo.main(Connect_Repo.java:14)
Caused by: java.lang.NullPointerException
at com.rsa.jcm.c.di$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.rsa.jcm.c.di.a(Unknown Source)
at com.rsa.jcm.c.di.(Unknown Source)
... 21 more
what i believe is keystore is generated automatically if you have the correct global registry entry in dfc.properties.
why it is not able to generate it.
i also tried copying the dfc.keystore from content server to composer.
the error changed to -
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.documentum.fc.client.DfClient.(DfClient.java:772)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.pge.dctm.util.Connect_Repo.main(Connect_Repo.java:14)
Caused by: java.lang.NullPointerException
at com.documentum.fc.impl.security.action.GetResourceAsStreamAction.run(GetResourceAsStreamAction.java:19)
at com.documentum.fc.impl.security.action.GetResourceAsStreamAction.run(GetResourceAsStreamAction.java:9)
at java.security.AccessController.doPrivileged(Native Method)
at com.documentum.fc.client.impl.bof.cache.CacheManifest$CacheSchemaEntityResolver.resolveEntity(CacheManifest.java:1070)
at com.documentum.xerces_2_8_0.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.parsers.XML11Configuration.parse(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.parsers.XML11Configuration.parse(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.parsers.XMLParser.parse(Unknown Source)
at com.documentum.xerces_2_8_0.xerces.parsers.DOMParser.parse(Unknown Source)
at com.documentum.xml.jaxp.DfDocumentBuilderImpl.parse(DfDocumentBuilderImpl.java:189)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.documentum.fc.client.impl.bof.cache.CacheManifest.syncDocumentAndAcquireLockIfNeeded(CacheManifest.java:597)
at com.documentum.fc.client.impl.bof.cache.CacheManifest.getVersionMasterStamp(CacheManifest.java:315)
at com.documentum.fc.client.impl.bof.cache.DefaultLocalAccessor.getMasterStamp(DefaultLocalAccessor.java:118)
at com.documentum.fc.client.impl.bof.cache.DocbaseClassCache.getMasterStamp(DocbaseClassCache.java:48)
at com.documentum.fc.client.impl.bof.cache.ClassCacheManager.getMasterStamp(ClassCacheManager.java:369)
at com.documentum.fc.client.impl.bof.cache.BofConsistencyChecker.init(BofConsistencyChecker.java:24)
at com.documentum.fc.client.impl.bof.cache.ClassCacheManager.initDocbase(ClassCacheManager.java:606)
at com.documentum.fc.client.impl.bof.cache.ClassCacheManager.initialDiscovery(ClassCacheManager.java:588)
at com.documentum.fc.client.impl.bof.cache.ClassCacheManager.(ClassCacheManager.java:440)
at com.documentum.fc.client.impl.bof.cache.ClassCacheManager.getInstance(ClassCacheManager.java:52)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.init(ModuleManager.java:317)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.getInstance(ModuleManager.java:43)
at com.documentum.fc.client.security.impl.DfcIdentityPublisher.(DfcIdentityPublisher.java:44)
at com.documentum.fc.client.security.internal.RegistrationMgr.register(RegistrationMgr.java:34)
at com.documentum.fc.impl.RuntimeContext.(RuntimeContext.java:195)
... 3 more
please help me resolve this error.
is there any configuration i am missing.
content server: version 7.3.0000.0214 Win64.SQLServer
Thanks in advance!!