[jboss-jira] [JBoss JIRA] (WFLY-8368) InterDeploymentDependenciesEarTestCase may fail with NoSuchEJBException

Petr Kremensky (JIRA) issues at jboss.org
Wed Mar 15 04:11:00 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-8368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petr Kremensky moved JBEAP-9582 to WFLY-8368:
---------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-8368  (was: JBEAP-9582)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: EJB
                       Test Suite
                           (was: EJB)
                           (was: Test Suite)
    Affects Version/s:     (was: 7.1.0.DR13)


> InterDeploymentDependenciesEarTestCase may fail with NoSuchEJBException
> -----------------------------------------------------------------------
>
>                 Key: WFLY-8368
>                 URL: https://issues.jboss.org/browse/WFLY-8368
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB, Test Suite
>            Reporter: Petr Kremensky
>            Assignee: Petr Kremensky
>            Priority: Minor
>
> org.jboss.as.test.integration.deployment.dependencies.ear.InterDeploymentDependenciesEarTestCase is expects to catch ISE in case that one of dependent deployments is not available
> {code:java}
>         deployer.undeploy(DEP_APP1);
>         try {
>             helloApp2.getLog();
>             fail("Calling EJB from dependent application should fail");
>         } catch (IllegalStateException e) {
>             //OK
>         }
> {code}
> ISE stack trace
> {noformat}
> 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)
> {noformat}
> But in [our CI jobs|https://jenkins.hosts.mwqe.eng.bos.redhat.com/hudson/job/eap-7x-as-testsuite-test-vmg-nfs-noip-localws/lastCompletedBuild/jdk=java1.8,label_exp=vmg110||vmg111||vmg112||vmg113||vmg114||vmg115||vmg116/testReport/org.jboss.as.test.integration.deployment.dependencies.ear/InterDeploymentDependenciesEarTestCase/test/], test intermittently fails with NoSuchEJBException
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list