Could not initialize class com.documentum.fc.common.DfLogger
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)
Comments
-
Did you patch log4j2? If you did, perhaps you forgot to update the META-INF/MANIFEST.MF file within dfc.jar?
0 -
Thank you for the reply
No I didn't patch any log4j am using as is DFC jar. Also, as I mentioned when I place the dfc21.4.jar in spring project it's failing to create session. if i place same create session code in standalone project it's working fine.
0 -
I've used DFC and spring boot successfully before. In any case, I recommend that you move to DFC 22.1 since it comes with the latest log4j2 libraries (i.e. without the infamous Log4shell vulnerability). Patching DFC 21.4 is a pain in the neck.
0 -
if you are using DFC 21.4, then update classpath to use java log4j-1.2-api-2.17.1.jar log4j-api-2.17.1.jar log4j-core-2.17.1.jar, this will resolve the issue (dfc.jar/META-INF/MANIFEST.MF refers to wrong versions of above jars)
0 -
Hi,
I had the same problem with dfc 23.2 and spring boot. I resolved the problem adding log4j-jul and log4j-slf4j-impl. I also exclude from spring-boot-starter the artifact spring-boot-starter-logging.
0 -
Hi JCHall,
we use Microsoft Entra ID tokens to authenticate our custom spring boot app and then dfc login ticket to authenticate to documentum.
MN
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management