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

InterDeploymentDependenciesEarTestCase may fail with NoSuchEJBException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 11.0.0.Alpha1
    • None
    • EJB, Test Suite
    • None

    Description

      org.jboss.as.test.integration.deployment.dependencies.ear.InterDeploymentDependenciesEarTestCase is expects to catch ISE in case that one of dependent deployments is not available

              deployer.undeploy(DEP_APP1);
              try {
                  helloApp2.getLog();
                  fail("Calling EJB from dependent application should fail");
              } catch (IllegalStateException e) {
                  //OK
              }
      

      ISE stack trace

      java.lang.IllegalStateException: EJBCLIENT000024: Not able to find EJB matching "StatelessEJBLocator for "app2/hello/LogAccessBean", view is interface org.jboss.as.test.integration.deployment.dependencies.ear.LogAccess, affinity is None"
      	at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:708)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:690)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:150)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:100)
      	at com.sun.proxy.$Proxy22.getLog(Unknown Source)
      	at org.jboss.as.test.integration.deployment.dependencies.ear.InterDeploymentDependenciesEarTestCase.test(InterDeploymentDependenciesEarTestCase.java:142)
      

      But in our CI jobs, test intermittently fails with NoSuchEJBException

      javax.ejb.NoSuchEJBException: No such EJB: app2/hello/LogAccessBean
      	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:354)
      	at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:75)
      	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:357)
      	at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:609)
      	at org.jboss.ejb.client.EJBInvocationHandler.lambda$invoke$0(EJBInvocationHandler.java:164)
      	at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:429)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:388)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:150)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:100)
      	at com.sun.proxy.$Proxy65.getLog(Unknown Source)
      	at org.jboss.as.test.integration.deployment.dependencies.ear.InterDeploymentDependenciesEarTestCase.test(InterDeploymentDependenciesEarTestCase.java:142)
      

      Attachments

        Issue Links

          Activity

            People

              pkremens@redhat.com Petr Kremensky (Inactive)
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: