Martin Choma created WFWIP-153:
----------------------------------
Summary: Keystore type automatic detection does not work for BCFKS
Key: WFWIP-153
URL:
https://issues.jboss.org/browse/WFWIP-153
Project: WildFly WIP
Issue Type: Bug
Components: Security
Reporter: Martin Choma
Assignee: Darran Lofthouse
{code}
14:33:56,353 ERROR [stderr] (MSC service thread 1-4) java.lang.ClassCastException:
org.bouncycastle.asn1.DLSequence cannot be cast to org.bouncycastle.asn1.ASN1Integer
14:33:56,354 ERROR [stderr] (MSC service thread 1-4) at
org.bouncycastle.asn1.pkcs.Pfx.<init>(Pfx.java:28)
14:33:56,354 ERROR [stderr] (MSC service thread 1-4) at
org.bouncycastle.asn1.pkcs.Pfx.getInstance(Pfx.java:52)
14:33:56,355 ERROR [stderr] (MSC service thread 1-4) at
org.bouncycastle.jcajce.provider.ProvPKCS12$PKCS12KeyStoreSpi.engineLoad(ProvPKCS12.java:1034)
14:33:56,355 ERROR [stderr] (MSC service thread 1-4) at
java.security.KeyStore.load(KeyStore.java:1445)
14:33:56,355 ERROR [stderr] (MSC service thread 1-4) at
org.wildfly.security.keystore.KeyStoreUtil.tryLoadKeystore(KeyStoreUtil.java:129)
14:33:56,355 ERROR [stderr] (MSC service thread 1-4) at
org.wildfly.security.keystore.KeyStoreUtil.loadKeyStore(KeyStoreUtil.java:107)
14:33:56,356 ERROR [stderr] (MSC service thread 1-4) at
org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:146)
14:33:56,356 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
14:33:56,356 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
14:33:56,357 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
14:33:56,357 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
14:33:56,357 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
14:33:56,357 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
14:33:56,358 ERROR [stderr] (MSC service thread 1-4) at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
14:33:56,358 ERROR [stderr] (MSC service thread 1-4) at
java.lang.Thread.run(Thread.java:748)
14:33:56,359 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed
to start service org.wildfly.security.key-store.key_store_BCFKS:
org.jboss.msc.service.StartException in service
org.wildfly.security.key-store.key_store_BCFKS: WFLYELY00004: Unable to start the
service.
at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:166)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at org.wildfly.security.keystore.AtomicLoadKeyStore.atomize(AtomicLoadKeyStore.java:101)
at org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:146)
... 8 more
14:33:56,363 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address:
([
("subsystem" => "elytron"),
("key-store" => "key_store_BCFKS")
]) - failure description: {"WFLYCTL0080: Failed services" =>
{"org.wildfly.security.key-store.key_store_BCFKS" => "WFLYELY00004:
Unable to start the service.
Caused by: java.lang.NullPointerException"}}
{code}
With type specified service starts without problem
--
This message was sent by Atlassian Jira
(v7.12.1#712002)