]
Emanuel Muckenhuber commented on WFLY-1997:
-------------------------------------------
For further reference. The problem here is seems to be the
server=*:read-resource-description causing the NPE. The operation can usually be executed,
since it's handled as part of the multi-target part of the read-resource-description.
As part of a composite operation this would be executed as a 2-phase operation and the
handling for wildcard targets is missing.
NPE executing domain operation
------------------------------
Key: WFLY-1997
URL:
https://issues.jboss.org/browse/WFLY-1997
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Domain Management
Reporter: Heiko Braun
Assignee: Brian Stansberry
Fix For: 8.0.0.CR1
{noformat}
[ERROR] Request
[ERROR] {
[ERROR] "operation" => "composite",
[ERROR] "address" => [],
[ERROR] "steps" => [
[ERROR] {
[ERROR] "address" => [("server-group" =>
"*")],
[ERROR] "operation" => "read-resource-description",
[ERROR] "access-control" => "trim-descriptions",
[ERROR] "operations" => true
[ERROR] },
[ERROR] {
[ERROR] "address" => [
[ERROR] ("host" => "master"),
[ERROR] ("server" => "*")
[ERROR] ],
[ERROR] "operation" => "read-resource-description",
[ERROR] "access-control" => "trim-descriptions",
[ERROR] "operations" => true
[ERROR] },
[ERROR] {
[ERROR] "address" => [("extension" =>
"*")],
[ERROR] "operation" => "read-resource-description",
[ERROR] "access-control" => "trim-descriptions",
[ERROR] "operations" => true
[ERROR] }
[ERROR] ],
[ERROR] "operation-headers" => {"roles" =>
"OPERATOR"}
[ERROR] }
{noformat}
leads to
{noformat}
[Host Controller] 16:34:53,544 ERROR [org.jboss.as.controller.management-operation]
(XNIO-1 task-12) JBAS014612: Operation ("composite") failed - address: ([]):
java.lang.NullPointerException
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.HostControllerExecutionSupport$Factory.create(HostControllerExecutionSupport.java:167)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.HostControllerExecutionSupport$Factory.create(HostControllerExecutionSupport.java:181)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationSlaveStepHandler.addSteps(OperationSlaveStepHandler.java:108)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.executeTwoPhaseOperation(OperationCoordinatorStepHandler.java:201)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.execute(OperationCoordinatorStepHandler.java:124)
[Host Controller] at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:103)
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:610)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:488)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:277)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:272)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:257)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:142)
[wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.domain.http.server.DomainApiHandler.handleRequest(DomainApiHandler.java:154)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.domain.http.server.security.SubjectDoAsHandler$2.run(SubjectDoAsHandler.java:96)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.domain.http.server.security.SubjectDoAsHandler$2.run(SubjectDoAsHandler.java:92)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at java.security.AccessController.doPrivileged(Native Method)
[rt.jar:1.7.0_17]
[Host Controller] at javax.security.auth.Subject.doAs(Subject.java:415)
[rt.jar:1.7.0_17]
[Host Controller] at
org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:92)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:86)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHandler.java:50)
[undertow-core-1.0.0.Beta12.jar:1.0.0.Beta12]
[Host Controller] at
org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(DomainApiCheckHandler.java:87)
[wildfly-domain-http-interface-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
[Host Controller] at
io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52)
[undertow-core-1.0.0.Beta12.jar:1.0.0.Beta12]
[Host Controller] at
io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:36)
[undertow-core-1.0.0.Beta12.jar:1.0.0.Beta12]
[Host Controller] at
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:614)
[undertow-core-1.0.0.Beta12.jar:1.0.0.Beta12]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_17]
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_17]
[Host Controller] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
[Host Controller]
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: