Getting error while configuring DA 23.2 with JDK 17
Hi,
We are getting below error while configuring DA 23.2 on apache tomcat 9.0.80 version.
15:31:07,673 ERROR [main] com.documentum.fc.client.security.impl.IdentityManager - [DFC_SECURITY_IDENTITY_INIT] no identity initialization or incomplete identity initialization
java.lang.IllegalStateException: Error creating sun.security.x509.X509CertInfo object
at com.documentum.fc.client.security.internal.ReflectionUtil.createExact(ReflectionUtil.java:52) ~[dfc.jar:?]
How to fix this issue. Kindly suggest.
OS version - RHEL 8.8
Apache Tomcat 9.0.80
Oracle jdk-17.0.6
Best Answers
-
You should really be able to solve this on your own. Read the messages carefully : you must have a space or some other character before sun.security.provider=ALL-UNNAMED.
0 -
You can "workaround" this error by placing on da/web-inf/classes an existing dfc.keystore. Since moving to openJDK, DFC is very picky about JVM version when it comes to create the keystores
0
Answers
-
As explained in the installation guide :
On Linux, set the <JAVA_TOOL_OPTIONS> environment variable to the following value:
-Djava.locale.providers=COMPAT,SPI --add-opens=java.base/java.lang=ALL-UNNAMED -- add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/ sun.security.provider=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL- UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add- exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/ sun.security.tools.keytool=ALL-UNNAMED
0 -
Hi Hicham,
Thanks for your response. I have added the below line in Linux user profile(.bash_profile)
export JAVA_TOOL_OPTIONS=-Djava.locale.providers=COMPAT,SPI --add-opens=java.base/java.lang=ALL-UNNAMED -- add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/ sun.security.provider=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL- UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add- exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/ sun.security.tools.keytool=ALL-UNNAMED
But getting the below error:-
-bash: export:
--add-opens=java.base/java.lang=ALL-UNNAMED': not a valid identifier
--': not a valid identifier
-bash: export:
-bash: export:add-opens=java.base/java.lang.invoke=ALL-UNNAMED': not a valid identifier
--add-exports=java.base/': not a valid identifier
-bash: export:
-bash: export:sun.security.provider=ALL-UNNAMED': not a valid identifier
--add-exports=java.base/sun.security.pkcs=ALL-': not a valid identifier
-bash: export:
-bash: export:--add-exports=java.base/sun.security.x509=ALL-UNNAMED': not a valid identifier
--add-': not a valid identifier
-bash: export:
-bash: export:--add-exports=java.base/': not a valid identifier
sun.security.tools.keytool=ALL-UNNAMED': not a valid identifier
-bash: export:Kindly suggest.
0 -
Thiis a bash error. Paste this in a text editor and make sure it's all on one line.
0 -
I have pasted in text editor and all are in one line.
0 -
As I said this is a bash problem. I see now that you didn't enclose the value in double-quotes. It should be
export JAVA_TOOL_OPTIONS=-"Djava.locale.providers=COMPAT,SPI
--add-opens=java.base/java.lang=ALL-UNNAMED --
add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-exports=java.base/ sun.security.provider=ALL-UNNAMED
--add-exports=java.base/sun.security.pkcs=ALL- UNNAMED
--add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-
exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/
sun.security.tools.keytool=ALL-UNNAMED"0 -
Hi Hicham,
I have added as per your suggestion in bash_profile file on Linux. But still getting the below error on tomcat logs.
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
Picked up JAVA_TOOL_OPTIONS: -Djava.locale.providers=COMPAT,SPI --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/ sun.security.provider=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/sun.security.tools.keytool=ALL-UNNAMED
Unrecognized option: sun.security.provider=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.0 -
You should really be able to solve this on your own. Read the messages carefully : you must have a space or some other character before sun.security.provider=ALL-UNNAMED.
0 -
Hi Hicham,
Issue has been resolved.
Thanks a ton for help.
0 -
Hi Hicham,
I am configuring webtop 16.7.9 with same JDK, getting below error:-
15:36:25,492 ERROR [main] com.documentum.fc.client.security.impl.IdentityManager - [DFC_SECURITY_IDENTITY_CREATION] failure on creation of identity: 'bad bundle'
com.documentum.fc.common.DfException: [DFC_SECURITY_IDENTITY_BUNDLE_FAIL] could not create identity bundle because identity initialization failedCan you guide me.
1 -
I think that Webtop 16.7.9 is only certified with Java 11 and not 17. Check the release notes.
0 -
You can "workaround" this error by placing on da/web-inf/classes an existing dfc.keystore. Since moving to openJDK, DFC is very picky about JVM version when it comes to create the keystores
0 -
Thanks AlvaroDeAndres, issue has been resolved.
0 -
Hi AlvaroDeAndres and Hicham,
I am getting below message on docbase log file.
Picked up JAVA_TOOL_OPTIONS: -Djava.locale.providers=COMPAT,SPI --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-exports=java.base/sun.security.provider=ALL-UNNAMED --add-exports=java.base/sun.security.pkcs=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-exports=java.base/sun.security.tools.keytool=ALL-UNNAMED
sh: com.emc.documentum.server.method.eventsender.EventSender: command not found0 -
that has nothing to do with JVM, probably your event sender method is wrong and marked as program
0 -
Is it create problem?
How can I resolve it?
0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 145 General Questions
- 132 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 8.9K Extended ECM
- 912 Cloud Fax and Notifications
- 81 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 164 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 4 XM Fax