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

Look up of RemoteConnectionFactory with discovery-group is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 15.0.0.Beta1, 15.0.0.Final
    • 14.0.0.Final
    • JMS
    • None
    • Hide

      Steps to reproduce:

      git clone git://git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git
      cd eap-tests-hornetq/scripts/
      git checkout master
      
      groovy -DEAP_ZIP_URL=http://download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.zip PrepareServers7.groovy
      export WORKSPACE=$PWD
      export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap
      export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap
      export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap
      export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap
      
      cd ../jboss-hornetq-testsuite/
      mvn clean test -Dtest=RemoteBrokerTestCase#testConnectionFactoryWithDiscoveryGroup    -Deap7.org.jboss.qa.hornetq.apps.clients.version=7.2.0.CD14.CR2 | tee log
      
      Show
      Steps to reproduce: git clone git: //git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git cd eap-tests-hornetq/scripts/ git checkout master groovy -DEAP_ZIP_URL=http: //download.jboss.org/wildfly/14.0.1.Final/wildfly-14.0.1.Final.zip PrepareServers7.groovy export WORKSPACE=$PWD export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap cd ../jboss-hornetq-testsuite/ mvn clean test -Dtest=RemoteBrokerTestCase#testConnectionFactoryWithDiscoveryGroup -Deap7.org.jboss.qa.hornetq.apps.clients.version=7.2.0.CD14.CR2 | tee log

    Description

      If RemoteConnectionFactory is defined with discovery-group like (note that it's defined directly in messaging subsystem, not in <server>...</server>):

              <subsystem xmlns="urn:jboss:domain:messaging-activemq:4.0">
                  <discovery-group name="dg-group1" jgroups-channel="ee" jgroups-cluster="artemis-cluster" initial-wait-timeout="30000"/>
                  <connection-factory name="RemoteConnectionFactory" discovery-group="dg-group1" entries="java:jboss/exported/jms/RemoteConnectionFactory java:/jms/RemoteConnectionFactory"/>
              </subsystem>
      

      then it registers to JNDI "java:/jms/RemoteConnectionFactory" but with null. See JNDI view:

      [standalone@localhost:9990 subsystem=naming] /subsystem=naming/:jndi-view
      ...
       "jms" => {
                          "class-name" => "javax.naming.Context",
                          "children" => {
                              "RemoteConnectionFactory" => {
                                  "class-name" => "java.lang.Object",
                                  "value" => "null"
                              },
      
      

      Result:
      If EE deployment looks up or injects such CF then it fails on NullPointerException.

      Attachments

        Issue Links

          Activity

            People

              ehugonne1@redhat.com Emmanuel Hugonnet
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: