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

mod-cluster configure via CLI may end with msg: Failed to start service Caused by: java.lang.NullPointerException"

    Details

    • Steps to Reproduce:
      Hide
      • start standalone server and connect to it via cli...
      • add advertisement and management socket bindings:
        /socket-binding-group=standard-sockets/socket-binding=foo-adv-bind:add()
        /socket-binding-group=standard-sockets/socket-binding=foo-man-bind:add()
        
      • then try to add new mod-cluster filter:
        /subsystem=undertow/configuration=filter/mod-cluster=test-mod-cl:add(management-socket-binding=foo-man-bind, advertise-socket-binding=foo-adv-bind)
        

        result message is:

        {
            "outcome" => "failed",
            "failure-description" => {"WFLYCTL0080: Failed services" => {"jboss.undertow.filter.test-mod-cl" => "org.jboss.msc.service.StartException in service jboss.undertow.filter.test-mod-cl: Failed to start service
            Caused by: java.lang.NullPointerException"}},
            "rolled-back" => true
        }
        
      Show
      start standalone server and connect to it via cli... add advertisement and management socket bindings: /socket-binding-group=standard-sockets/socket-binding=foo-adv-bind:add() /socket-binding-group=standard-sockets/socket-binding=foo-man-bind:add() then try to add new mod-cluster filter: /subsystem=undertow/configuration=filter/mod-cluster=test-mod-cl:add(management-socket-binding=foo-man-bind, advertise-socket-binding=foo-adv-bind) result message is: { "outcome" => "failed" , "failure-description" => { "WFLYCTL0080: Failed services" => { "jboss.undertow.filter.test-mod-cl" => "org.jboss.msc.service.StartException in service jboss.undertow.filter.test-mod-cl: Failed to start service Caused by: java.lang.NullPointerException"}}, "rolled-back" => true }

      Description

      When setting up mod-cluster via CLI then msg Failed to start service Caused by: java.lang.NullPointerException" may appear.

      Particular file where exception is thrown is: ModClusterService.java, line 90 . Reason for exception is that advertise socket binding has to have set multicast address also (mod cluster just expect it is set it does not check it). In case multicat address is set then adding mod-cluster filter is successful.

      I would expect that more reasonable message is print to user instead of generic NPE.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  jstourac Jan Stourac
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: