Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9450

NPE on jaxrs subsystem of FAILED deployment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 19.0.0.Beta1, 19.0.0.Final
    • 15.0.1.Final
    • REST
    • None

    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:

      /host=master/server=server-one:read-children-resources(child-type=deployment,include-runtime,recursive)
      
      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)
      

      The exception in server.log

      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)
      

      The CLI results doesn't display the error message

      [domain@localhost:9990 /] /host=master/server=server-one:read-children-resources(child-type=deployment,include-runtime,recursive)
      {
          "outcome" => "success",
          "result" => undefined,
          "failure-description" => undefined
      }
      

      There is a similar problem while reading a specific deployment,

      /host=master/server=server-one/deployment=kitchensink.war:read-children-resources(child-type=subsystem,recursive)
      

      results in the following error in server.log

      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"
      

      Attachments

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              cmiranda@redhat.com Claudio Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: