Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6328

SingletonService fails with NullPointerException when bound to 0.0.0.0

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Out of Date
    • Affects Version/s: 7.1.2.Final (EAP)
    • Fix Version/s: None
    • Component/s: Clustering
    • Labels:
      None

      Description

      Assume that you have working deployment with a custom MSC service wrapped into a SingletonService. When you are trying to access the value of the SingletonService, the SingletonService.getValue() call fails with NullPointerException iff the JBoss instance is listening on all interfaces, i.e. it is bound to 0.0.0.0 by using <inet-address value="0.0.0.0"/> or <any-address/> under <interface name="public"> in standalone-full-ha.xml.

      It works when specifying an explicit IP.

      Example: try the cluster-ha-singleton jboss-as-quickstart

      Top of the stack trace:

      java.lang.NullPointerException
      at org.jboss.as.clustering.singleton.SingletonService.getValue(SingletonService.java:176)
      at org.jboss.as.clustering.singleton.SingletonService.getValue(SingletonService.java:53)
      at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1203)
      [...]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pferraro Paul Ferraro
                Reporter:
                patrik.varga Patrik Varga
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: