Hi Team,
we are using 21.4 dfc along with spring boot, during IDF session creation it's throwing NoClassDefFoundError. when I create seperate java project and try to execute below code it's not throwing any exception.
spring project some jar conflicting with dfc.jar , is there any way to figure out which jars causing problem?.
IDfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
// create a Session Manager object
IDfSessionManager sMgr = client.newSessionManager();
// create an IDfLoginInfo object named loginInfoObj
IDfLoginInfo loginInfoObj = clientx.getLoginInfo();
loginInfoObj.setUser(user);
if (pass != null) {
loginInfoObj.setPassword(pass);
}
loginInfoObj.setDomain(null);
sMgr.setIdentity(docbase, loginInfoObj);
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.documentum.fc.common.DfLogger
at com.documentum.fc.common.DfNewInterprocessLockImpl.release(DfNewInterprocessLockImpl.java:148)
at com.documentum.fc.common.DfNewInterprocessLock.release(DfNewInterprocessLock.java:28)
at com.documentum.fc.client.DfSimpleDbor.read(DfSimpleDbor.java:483)
at com.documentum.fc.client.DfSimpleDbor.setURL(DfSimpleDbor.java:133)
at com.documentum.fc.client.DfSimpleDbor.<init>(DfSimpleDbor.java:66)
at com.documentum.fc.client.DfClient$ClientImpl.<init>(DfClient.java:352)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:786)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.juliusbaer.itint.chn.documentmanagement.util.DocumentumSessionUtil.createSessionManager(DocumentumSessionUtil.java:78)
at com.juliusbaer.itint.chn.documentmanagement.util.DocumentumSessionUtil.main(DocumentumSessionUtil.java:145)