[jboss-jira] [JBoss JIRA] (WFLY-9450) NPE on jaxrs subsystem of FAILED deployment
Bartosz Baranowski (Jira)
issues at jboss.org
Mon Jan 21 06:15:01 EST 2019
[ https://issues.jboss.org/browse/WFLY-9450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bartosz Baranowski updated WFLY-9450:
-------------------------------------
Description:
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 at 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}
was:
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}
{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 at 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}
> NPE on jaxrs subsystem of FAILED deployment
> --------------------------------------------
>
> Key: WFLY-9450
> URL: https://issues.jboss.org/browse/WFLY-9450
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 15.0.1.Final
> Reporter: Claudio Miranda
> Assignee: Bartosz Baranowski
> Priority: Major
>
> 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 at 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}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list