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

Server doesn't start when DNS_PING is configured

    XMLWordPrintable

Details

    • Hide

      Configuration:
      <protocol type="dns.DNS_PING">
      <property name="dns_query">eap-app-ping</property>
      <property name="async_discovery_use_separate_thread_per_request">true</property>
      </protocol>

      Show
      Configuration: <protocol type="dns.DNS_PING"> <property name="dns_query">eap-app-ping</property> <property name="async_discovery_use_separate_thread_per_request">true</property> </protocol>

    Description

      NPE at start.
      The root cause is that <module name="sun.jdk"/> is missing from org.wildfly.clustering.service module.

      Exception:
      Caused by: java.lang.NullPointerException
      at org.jgroups.protocols.dns.DNS_PING.destroy(DNS_PING.java:70)
      at java.util.ArrayList.forEach(ArrayList.java:1257)
      at org.jgroups.stack.ProtocolStack.destroy(ProtocolStack.java:876)
      at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:867)
      at org.jgroups.stack.ProtocolStack.init(ProtocolStack.java:849)
      at org.jgroups.JChannel.<init>(JChannel.java:155)
      at org.jboss.as.clustering.jgroups.JChannelFactory.createChannel(JChannelFactory.java:116)
      at org.jboss.as.clustering.jgroups.subsystem.ChannelServiceConfigurator.get(ChannelServiceConfigurator.java:96)

      Hidden exception:
      Failed instantiate InitialContextFactory com.sun.jndi.dns.DnsContextFactory from classloader ModuleClassLoader for Module "org.wildfly.clustering.service" version 18.0.0.Final-SNAPSHOT from local module loader @2d3fcdbd (finder: local module finder @617c74e5 (roots: /home/jdenise/workspaces/wildfly-jfdenise/build/target/wildfly-18.0.0.Final-SNAPSHOT/modules,/home/jdenise/workspaces/wildfly-jfdenise/build/target/wildfly-18.0.0.Final-SNAPSHOT/modules/system/layers/base)) [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory from [Module "org.wildfly.clustering.service" version 18.0.0.Final-SNAPSHOT from local module loader @2d3fcdbd (finder: local module finder @617c74e5 (roots: /home/jdenise/workspaces/wildfly-jfdenise/build/target/wildfly-18.0.0.Final-SNAPSHOT/modules,/home/jdenise/workspaces/wildfly-jfdenise/build/target/wildfly-18.0.0.Final-SNAPSHOT/modules/system/layers/base))]]

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: