Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2184

insufficient failure description when module specified as parameter of process-state-listener:add doesn't exist

    XMLWordPrintable

Details

    • Hide
      1. add extension
        /extension=org.wildfly.extension.core-management:add(module=org.wildfly.extension.core-management)
        
      2. add subsystem
        /subsystem=core-management:add
        
      3. try to add process-state-listener
        /subsystem=core-management/process-state-listener=test:add(class=test.class, module=test)
        {
            "outcome" => "failed",
            "failure-description" => "test:main",
            "rolled-back" => true
        }
        
      Show
      add extension /extension=org.wildfly.extension.core-management:add(module=org.wildfly.extension.core-management) add subsystem /subsystem=core-management:add try to add process-state-listener /subsystem=core-management/process-state-listener=test:add(class=test.class, module=test) { "outcome" => "failed", "failure-description" => "test:main", "rolled-back" => true }
    • User Experience

    Description

      Command

      /subsystem=core-management/process-state-listener=test:add(class=test.class, module=test)
      

      prints only module identifier as failure description when module doesn't exists.

      Failure description should be more informative. At least something as "Error loading module: ...."

      ProcessStateListenerResourceDefinition.java#L127 can react to ModuleLoadException

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: