Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2614

NPE Defining security realm with invalid keystore alias

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.CR1
    • 8.0.0.Beta1
    • Management
    • None

      The following is logged if an invalid alias is used, the reported was pointing to a certificate and not the private key.

      Caused by: java.lang.NullPointerException: invalid null input
          at java.security.KeyStore.setEntry(KeyStore.java:1321) [rt.jar:1.7.0_13]
          at org.jboss.as.domain.management.security.FileKeystore.load(FileKeystore.java:106)
          at org.jboss.as.domain.management.security.FileKeystoreService.start(FileKeystoreService.java:60)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          ... 3 more
      

      The alias should also be checked against the keystore and an appropriate error reported if not present, maybe even list the valid aliases if possible.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: