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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • 7.1.2.Final (EAP)
    • Clustering
    • 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)
      [...]

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            patrik.varga_jira Patrik Varga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: