[jboss-jira] [JBoss JIRA] (WFLY-7080) Creating ssl context with only required attribute cause NPE

Martin Choma (JIRA) issues at jboss.org
Wed Nov 16 07:37:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-7080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13323654#comment-13323654 ] 

Martin Choma commented on WFLY-7080:
------------------------------------

Shouldnt't be keyManager required for server-ssl-context? What would be a use case for key-managers=null in case of server-ssl-context? Key-managares in elytron holds reference to key-store. Can it be somehow intended to create server-ssl-context without configured keystore through elytron? Coming to my mind e.g. setting keystore through system property javax.net.ssl.keyStore?

> Creating ssl context with only required attribute cause NPE
> -----------------------------------------------------------
>
>                 Key: WFLY-7080
>                 URL: https://issues.jboss.org/browse/WFLY-7080
>             Project: WildFly
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 11.0.0.Alpha1
>            Reporter: Martin Choma
>            Assignee: Jan Kalina
>            Priority: Critical
>              Labels: user_experience
>             Fix For: 11.0.0.Alpha1
>
>
> {noformat}
> [standalone at localhost:9990 /] /subsystem=elytron/server-ssl-context=server2:add(protocols=[TLSv1_2])
> {
>     "outcome" => "failed",
>     "failure-description" => {
>         "WFLYCTL0080: Failed services" => {"org.wildfly.security.ssl-context.server2" => "org.jboss.msc.service.StartException in service org.wildfly.security.ssl-context.server2: Failed to start service
>     Caused by: java.lang.NullPointerException"},
>         "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.ssl-context.server2"],
>         "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
>     },
>     "rolled-back" => true
> }
> {noformat}
> In log of server there is exception:
> {noformat}
> 07:12:21,014 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service org.wildfly.security.ssl-context.server2: org.jboss.msc.service.StartException in service org.wildfly.security.ssl-context.server2: 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.NullPointerException
> 	at org.wildfly.security.ssl.SSLContextBuilder.lambda$build$0(SSLContextBuilder.java:275)
> 	at org.wildfly.security.OneTimeSecurityFactory.create(OneTimeSecurityFactory.java:45)
> 	at org.wildfly.extension.elytron.SSLDefinitions$3.lambda$getValueSupplier$1(SSLDefinitions.java:411)
> 	at org.wildfly.extension.elytron.TrivialService.start(TrivialService.java:53)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> 	... 3 more
> 07:12:21,016 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 6) WFLYCTL0013: Operation ("add") failed - address: ([
>     ("subsystem" => "elytron"),
>     ("server-ssl-context" => "server2")
> ]) - failure description: {
>     "WFLYCTL0080: Failed services" => {"org.wildfly.security.ssl-context.server2" => "org.jboss.msc.service.StartException in service org.wildfly.security.ssl-context.server2: Failed to start service
>     Caused by: java.lang.NullPointerException"},
>     "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.security.ssl-context.server2"],
>     "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list