Bug description
Trying to set up a default configuration fails when the JVM only has the -Djavax.net.ssl.trustStore JVM property configured, and the -Djavax.net.ssl.trustStoreType JVM property is not set.
The error message seen is:
08/12/2020 09:59:25:151 pm BST: Running DS setup AMSetupServlet.processRequest: error java.lang.NullPointerException: null type name at java.base/java.util.Objects.requireNonNull(Objects.java:246) at java.base/java.security.KeyStore.getInstance(KeyStore.java:873) at deployment.ROOT.war//com.sun.identity.setup.EmbeddedOpenDS.setupOpenDS(EmbeddedOpenDS.java:407) at deployment.ROOT.war//com.sun.identity.setup.EmbeddedOpenDS.setup(EmbeddedOpenDS.java:283) at deployment.ROOT.war//com.sun.identity.setup.AMSetupServlet.setupEmbeddedDS(AMSetupServlet.java:801) at deployment.ROOT.war//com.sun.identity.setup.AMSetupServlet.setupSMDatastore(AMSetupServlet.java:824) at deployment.ROOT.war//com.sun.identity.setup.AMSetupServlet.configure(AMSetupServlet.java:887)
How to reproduce the issue
Configure the JVM to use a custom trustStore, but do not define the trustStoreType JVM property.
Expected behaviour
Install works.
Current behaviour
It doesn't.
Work around
Specify the -Djavax.net.ssl.trustStoreType JVM property as well.
- relates to
-
OPENAM-16638 AM with embedded DS setup fails when Java system keystore properties is set
-
- Resolved
-