[jboss-jira] [JBoss JIRA] (WFWIP-153) Keystore type automatic detection does not work for BCFKS
Martin Choma (Jira)
issues at jboss.org
Mon Dec 17 09:21:00 EST 2018
[ https://issues.jboss.org/browse/WFWIP-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675336#comment-13675336 ]
Martin Choma commented on WFWIP-153:
------------------------------------
Same for BKS. Exception seems very similar so keeping under one JIRA.
{code}
15:05:23,741 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.security.key-store.key_store_BKS: org.jboss.msc.service.StartException in service org.wildfly.security.key-store.key_store_BKS: WFLYELY00004: Unable to start the service.
at org.wildfly.extension.elytron at 8.0.0.Beta2-SNAPSHOT//org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:166)
at org.jboss.msc at 1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
at org.jboss.msc at 1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
at org.jboss.msc at 1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
at org.jboss.threads at 2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads at 2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads at 2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads at 2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at org.wildfly.security.elytron-private at 1.7.0.CR4-SNAPSHOT//org.wildfly.security.keystore.AtomicLoadKeyStore.atomize(AtomicLoadKeyStore.java:101)
at org.wildfly.extension.elytron at 8.0.0.Beta2-SNAPSHOT//org.wildfly.extension.elytron.KeyStoreService.start(KeyStoreService.java:146)
... 8 more
15:05:23,743 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "elytron"),
("key-store" => "key_store_BKS")
]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.security.key-store.key_store_BKS" => "WFLYELY00004: Unable to start the service.
Caused by: java.lang.NullPointerException"}}
{code}
> 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: Martin Mazanek
> Priority: Major
>
> {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)
More information about the jboss-jira
mailing list