EJBCLIENT000025 occurs 10 seconds after WARN ... Could not register a EJB receiver for connection in JBoss EAP 7.0 / 6.4
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.0
- 6.4
Issue
16:48:41,944 WARN (ClientThread-7) [org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector] Could not register a EJB receiver for connection to 128.0.0.1:8443: java.lang.RuntimeException: Operation failed with status WAITING
...
16:48:51,951 TRACE (ClientThread-7) [org.jboss.ejb.client.EJBClientContext] Reconnection attempt for EJB client context org.jboss.ejb.client.EJBClientContext@131d71ab complete on thread ClientThread-7
16:48:51,952 ERROR (ClientThread-7) [com.redhat.cee.sd.aps.ejb.client.EJBClientThread] IllegalStateException: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:hello-ejb, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@4fd148ce
Resolution
Validate the connection information is correct and the remote server is reachable, then raise the timeout if needed.
Set the reconnect tasks timeout (value is in milliseconds)
reconnect.tasks.timeout=60000
Related solutions:
How to configure timeouts for remote EJBs invoking server under heavy load in JBoss EAP 7.0 / 6.4
Root Cause
The client failed to connect initially and registered a reconnect handler, the reconnect handler has a 10 sec default timeout. If the remote server is reachable and the connection information is valid, then the server could be under heavy load and fail to response in the given time or the network could be slow, in which the reconnect.tasks.timeout needs to be raised. Also the server could have issues such as garbage collection issues and might need tuning.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.