]
Jan Kalina edited comment on WFLY-7080 at 9/10/16 7:40 AM:
-----------------------------------------------------------
Sent pull request to wildfly master. (added to pull request with "SSLContext - client
side", which is strongly related and may be required too)
was (Author: honza889):
Sent pull request to wildfly master.
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
Fix For: 11.0.0.Alpha1
{noformat}
[standalone@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}