EJBCLIENT000025: No EJB receiver available for handling... when client calls cluster and one node does not have the ejb deployed

Solution Unverified - Updated -

Issue

We have a cluster of 3 nodes where EJB1 is deployed only first 2 nodes and EJB2 is deployed on all 3 nodes. We have a single EJB client for both the EJBs, hence the jboss-ejb-client.properties has list of all 3 nodes of cluster with RandomClusterNodeSelector as ClusterNodeSelector.

When calling EJB1 the client tries to connect to node3 even though EJB1 is not present in it. The call fails with the following exception:

INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@4b73eabc, receiver=Remoting connection EJB receiver [connection=org.jboss.ejb.client.remoting.ConnectionPool$PooledConnection@a31d423,channel=jboss.ejb,nodename=node3]} on channel Channel ID b2ef1b23 (outbound) of Remoting connection 450ae1f1 to localhost/127.0.0.1:4447
Exception in thread "main" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:HelloEJB, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@2c2d067e
    at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:729)
    at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)
    at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)
    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
    at com.sun.proxy.$Proxy0.sayHello(Unknown Source)
    at Client.main(Client.java:32)

Environment

Red Hat JBoss Fuse Service Works (FSW) 6.0.0
Red Hat Enterprise Application Platform (EAP) 6.1.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.