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

404 error on JNDI lookup behind load balancer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 37.0.0.Beta1, 37.0.0.Final
    • 36.0.1.Final
    • Naming
    • None
    • Hide

      Steps to reproduce:

      git clone https://gitlab.cee.redhat.com/jbossqe-eap/messaging-testsuite
      cd messaging-testsuite/scripts/
      groovy -DEAP_ZIP_URL=file:///home/ehugonne/dev/wildfly/wildfly/dist/target/wildfly-37.0.0.Beta1-SNAPSHOT.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 install -B -DexcludedGroups=None,category.scope.Broker -Dgroups=category.Functional -Dsurefire.timeout=93600 -Deap7.org.jboss.qa.hornetq.apps.clients.version=8.1748851929-ehsavoie-ARTEMIS-5498-ehsavoie-ARTEMIS-5498-SNAPSHOT -DreuseForks=false -Dmaven.test.failure.ignore=true -Deap7.clients.version=8.1748851929-ehsavoie-ARTEMIS-5498-ehsavoie-ARTEMIS-5498-SNAPSHOT -Dsurefire.failIfNoSpecifiedTests=false -Dtest=org.jboss.qa.artemis.test.loadbalancers.ClusterFrontEndLoadBalancingTestCase#basicSendReceiveUndertowWithModClusterBalancerJmsClient
      
      Show
      Steps to reproduce: git clone https: //gitlab.cee.redhat.com/jbossqe-eap/messaging-testsuite cd messaging-testsuite/scripts/ groovy -DEAP_ZIP_URL=file: ///home/ehugonne/dev/wildfly/wildfly/dist/target/wildfly-37.0.0.Beta1-SNAPSHOT.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 install -B -DexcludedGroups=None,category.scope.Broker -Dgroups=category.Functional -Dsurefire.timeout=93600 -Deap7.org.jboss.qa.hornetq.apps.clients.version=8.1748851929-ehsavoie-ARTEMIS-5498-ehsavoie-ARTEMIS-5498-SNAPSHOT -DreuseForks= false -Dmaven.test.failure.ignore= true -Deap7.clients.version=8.1748851929-ehsavoie-ARTEMIS-5498-ehsavoie-ARTEMIS-5498-SNAPSHOT -Dsurefire.failIfNoSpecifiedTests= false -Dtest=org.jboss.qa.artemis.test.loadbalancers.ClusterFrontEndLoadBalancingTestCase#basicSendReceiveUndertowWithModClusterBalancerJmsClient
    • ---
    • ---

      There is a regression caused by Wildfly http-client 2.0.7.Final -> 2.1.0.Final upgrade.

      Test which is trying JNDI lookup over Undertow configured as load balancer fails with:

      javax.naming.CommunicationException: WFHTTP000005: Invalid response code 404 (full response ClientResponse{responseHeaders={content-length=[74], content-type=[text/html], date=[Mon, 02 Jun 2025 12:18:22 GMT]}, responseCode=404, status='', protocol=HTTP/2.0}) [Root exception is java.io.IOException: WFHTTP000005: Invalid response code 404 (full response ClientResponse{responseHeaders={content-length=[74], content-type=[text/html], date=[Mon, 02 Jun 2025 12:18:22 GMT]}, responseCode=404, status='', protocol=HTTP/2.0})]
      	at org.wildfly.httpclient.naming.HttpRootContext.performOperation(HttpRootContext.java:291)
      	at org.wildfly.httpclient.naming.HttpRootContext.lambda$processInvocation$1(HttpRootContext.java:248)
      	at org.wildfly.httpclient.naming.HttpRootContext.performWithRetry(HttpRootContext.java:176)
      	at org.wildfly.httpclient.naming.HttpRootContext.processInvocation(HttpRootContext.java:241)
      	at org.wildfly.httpclient.naming.HttpRootContext.processInvocation(HttpRootContext.java:231)
      	at org.wildfly.httpclient.naming.HttpRootContext.lookupNative(HttpRootContext.java:118)
      	at org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:84)
      	at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:144)
      	at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
      	at org.jboss.qa.artemis.test.loadbalancers.ClusterFrontEndLoadBalancingTestCase.jndiLookupBehindBalancer(ClusterFrontEndLoadBalancingTestCase.java:530)

              ropalka Richard Opalka
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: