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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR4
    • 7.0.0.DR2
    • Undertow
    • None
    • 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 }

      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.

              jstourac@redhat.com Jan Stourac
              jstourac@redhat.com Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: