Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16651

Default configuration fails if the trust store type JVM property is not defined for the JVM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.1.0, 7.0.2
    • Component/s: configurator
    • Labels:
    • Environment:
      WildFly 20.0.1

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adam.heath Adam Heath
                Reporter:
                peter.major.idf Peter Major
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: