Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-171

Properties based KeyStore fails to parse default WildFly properties file.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha1
    • None
    • SSL
    • None

      The default file only contains commented out lines, however the following error is reported.

      12:28:44,523 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC000001: Failed to start service elytron.keystore.mgmt_properties: org.jboss.msc.service.StartException in service elytron.keystore.mgmt_properties: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalArgumentException: The supplied character array must contain an even number of hex chars.
      	at org.wildfly.security.sasl.util.HexConverter.convertFromHex(HexConverter.java:91)
      	at org.wildfly.security.sasl.util.HexConverter.convertFromHex(HexConverter.java:123)
      	at org.wildfly.security.keystore.PropertiesKeyStoreSpi.engineLoad(PropertiesKeyStoreSpi.java:296)
      	at java.security.KeyStore.load(KeyStore.java:1433)
      	at org.wildfly.security.keystore.AtomicLoadKeyStoreSpi.engineLoad(AtomicLoadKeyStoreSpi.java:51)
      	at java.security.KeyStore.load(KeyStore.java:1433)
      	at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:109)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	... 3 more
      
      12:28:44,527 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "elytron"),
          ("keystore" => "mgmt_properties")
      ]) - failure description: {"WFLYCTL0080: Failed services" => {"elytron.keystore.mgmt_properties" => "org.jboss.msc.service.StartException in service elytron.keystore.mgmt_properties: Failed to start service
          Caused by: java.lang.IllegalArgumentException: The supplied character array must contain an even number of hex chars."}}
      

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

                Created:
                Updated:
                Resolved: