java.lang.ExceptionInInitializerError: A security class cannot be found in this JVM because of the following reason: sun.security.x509.CertAndKeyGen

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by user741974, 1 year ago
A security class cannot be found in this JVM because of the following reason: sun.security.x509.CertAndKeyGen
via GitHub by soisik
, 8 months ago
A security class cannot be found in this JVM because of the following reason: sun.security.x509.CertAndKeyGen
java.lang.ExceptionInInitializerError: A security class cannot be found in this JVM because of the following reason: sun.security.x509.CertAndKeyGen
at org.opends.server.util.Platform$PlatformIMPL.(Platform.java:132)
at org.opends.server.util.Platform.(Platform.java:85)
at org.opends.server.util.CertificateManager.generateSelfSignedCertificate(CertificateManager.java:283)
at org.opends.server.admin.AdministrationConnector.createSelfSignedCertifIfNeeded(AdministrationConnector.java:703)
at org.opends.server.admin.AdministrationConnector.initializeAdministrationConnector(AdministrationConnector.java:182)
at org.opends.server.core.ConnectionHandlerConfigManager.initializeAdministrationConnectorConfig(ConnectionHandlerConfigManager.java:356)
at org.opends.server.core.DirectoryServer.initializeAdministrationConnector(DirectoryServer.java:2872)
at org.opends.server.core.DirectoryServer.startServer(DirectoryServer.java:1539)
at org.opends.server.core.DirectoryServer.main(DirectoryServer.java:9930)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.