]
Bartosz Baranowski edited comment on WFLY-9450 at 1/29/20 4:21 AM:
-------------------------------------------------------------------
[~emiliocuberos] - this seem to be different issue. Please open new JIRA and attach
reproducer.
was (Author: baranowb):
@Emilio Cuberos - this seem to be different issue. Please open new JIRA and attach
reproducer.
NPE on jaxrs subsystem of FAILED deployment
--------------------------------------------
Key: WFLY-9450
URL:
https://issues.redhat.com/browse/WFLY-9450
Project: WildFly
Issue Type: Bug
Components: REST
Affects Versions: 15.0.1.Final
Reporter: Claudio Miranda
Assignee: Bartosz Baranowski
Priority: Major
Fix For: 19.0.0.Beta1
read deployment resources of a server, where one deployment is in failed status, throws a
NPE and doesn't return the list of deployed applications.
To reproduce, get the kitchensink from quickstarts, change the persistence.xml to point
to ExampleDS datasource, deploy and assign to main-server-group. Then disable ExampleDS,
restart server-one.
Run the following command:
{code}
/host=master/server=server-one:read-children-resources(child-type=deployment,include-runtime,recursive)
{code}
{code}
deploy ~/redhat/git/quickstart/kitchensink/target/kitchensink.war
--server-groups=main-server-group
/profile=default/subsystem=datasources/data-source=ExampleDS:write-attribute(name=enabled,value=false)
/profile=full/subsystem=datasources/data-source=ExampleDS:write-attribute(name=enabled,value=false)
/profile=full-ha/subsystem=datasources/data-source=ExampleDS:write-attribute(name=enabled,value=false)
/host=master/server=server-one:reload
/host=master/server=server-one:read-children-resources(child-type=deployment,include-runtime,recursive)
{code}
The exception in server.log
{code}
2017-10-17 17:08:02,778 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 32) WFLYCTL0013: Operation ("read-attribute")
failed - address: ([
("deployment" => "kitchensink.war"),
("subsystem" => "jaxrs"),
("rest-resource" =>
"org.jboss.as.quickstarts.kitchensink.rest.MemberResourceRESTService")
]): java.lang.NullPointerException
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.getDeployment(UndertowDeploymentService.java:170)
at
org.jboss.as.jaxrs.DeploymentRestResourcesDefintion$AbstractRestResReadHandler.execute(DeploymentRestResourcesDefintion.java:183)
at
org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecuteInternal(ReadAttributeHandler.java:172)
at
org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecute(ReadAttributeHandler.java:135)
at
org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:231)
{code}
The CLI results doesn't display the error message
{code}
[domain@localhost:9990 /]
/host=master/server=server-one:read-children-resources(child-type=deployment,include-runtime,recursive)
{
"outcome" => "success",
"result" => undefined,
"failure-description" => undefined
}
{code}
There is a similar problem while reading a specific deployment,
{code}
/host=master/server=server-one/deployment=kitchensink.war:read-children-resources(child-type=subsystem,recursive)
{code}
results in the following error in server.log
{code}
2017-10-17 17:16:09,857 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 32) WFLYCTL0013: Operation ("read-attribute")
failed - address: ([
("deployment" => "kitchensink.war"),
("subsystem" => "ejb3"),
("stateless-session-bean" => "MemberRegistration")
]) - failure description: "WFLYEJB0370: EJB component for address [
(\"deployment\" => \"kitchensink.war\"),
(\"subsystem\" => \"ejb3\"),
(\"stateless-session-bean\" => \"MemberRegistration\")
] is in
state DOWN, must be in state UP"
{code}