Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1228

NPE when deploying additional content via jboss-cli (http remote interface)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.3.3
    • Fix Version/s: 2017.4.0
    • Component/s: core
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. Create and start -swarm.jar with management fraction
      2. Run jboss-cli.sh --connect --comnad "deploy <path-to-war-file>". The script can be found inside wildfly-dist/bin

      Show
      1. Create and start -swarm.jar with management fraction 2. Run jboss-cli.sh --connect --comnad "deploy <path-to-war-file>" . The script can be found inside wildfly-dist/bin

      Description

      Trying to deploy additional content via jboss-cli.sh (or the Java client for WF HTTP remote interface) results in NullPointerException during the deployment (see the stacktrace below).

      The NPE happens here https://github.com/wildfly/wildfly/blob/10.1.0.Final/ee/src/main/java/org/jboss/as/ee/metadata/property/DeploymentPropertiesProcessor.java#L50 because the org.jboss.as.server.deployment.Attachments.DEPLOYMENT_ROOT attachment is not set.

      Stacktrace:

      2017-03-22 18:06:53,497 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."kie#mariadb-1.3.4#".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."kie#mariadb-1.3.4#".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment "kie#mariadb-1.3.4#"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	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.jboss.as.ee.metadata.property.DeploymentPropertiesProcessor.deploy(DeploymentPropertiesProcessor.java:50)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
      	... 5 more
      
      2017-03-22 18:06:53,499 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "kie#mariadb-1.3.4#")]) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kie#mariadb-1.3.4#\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"kie#mariadb-1.3.4#\".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE of deployment \"kie#mariadb-1.3.4#\"
          Caused by: java.lang.NullPointerException"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"kie#mariadb-1.3.4#\".STRUCTURE"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                psiroky Petr Široký
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: