Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5794

Unclear exception when trying to do full-replace-deployment operation with wrong name attribute value

    XMLWordPrintable

Details

    • Hide
      1. deploy test.war
      2. :full-replace-deployment(name= test-2.war, content=[ {url=file:///path/to/test-2.war}

        ])

      Show
      deploy test.war :full-replace-deployment(name= test-2.war , content=[ {url=file:///path/to/test-2.war} ])

    Description

      in standalone mode user gets

      "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException"

      whereas in domain mode better but still confusing

      "failure-description" => {"domain-failure-description" => "WFLYCTL0216: Management resource '[(\"deployment\" => \"test-2.war\")]' not found"}

      I would rather expect something like "Original file to be replaced named test-2.war not found."
      Definitely not the NPE in standalone mode.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              pjelinek@redhat.com Pavel Jelinek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: