No EJB receiver available for handling

Latest response

Hi,
We migrated a lot of old and stable applications from an Application Sever of a different Vendor to JBoss AS 7.1.1.final.
On the previous application server the same applications ran for many years without raising any problems.

Please find below initial info about the configuration:
• OS: Linux Red-Hat
• Application Server: JBoss AS 7.1.1.final
• Ver. JDK: 1.7.0.0
• JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

On an Application Server of the production environment on which about 42 applications (EJB) run with periodic and constant scheduling, a complete application server crash occurred. In this situation, the application server is completely unavailable and inactive.

Analyzing the log file (client log) we can find the following error.

08/12/2020 10:00:43 70179 No EJB receiver available for handling [appName:BatchProd,modulename:ModuleEJB,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@2d17d41d

From the error, according to our understanding, it is clear that the problem is inherent to the saturation of JNDI resources.

In order to identify in a deterministic manner the cause that is generating this application server failover, I could kindly ask for the procedures to be activated to analyze the logs and how to monitor the usage and consumption of JNDI resources and/or identify the proper configuration that should avoid the problem.

This is a blocking problem as it occurs randomly in the production environment.

Responses

Hi all, sometime the error happens, i was able to catch the error that occur when the client is trying to establish the connection with the handler ejb. Please find below the stacktrace.

Thanks in advance for your support.

021-01-13 00:02:25 DEBUG RemotingConnectionEJBReceiver:141 - Closing channelChannel ID b132a2d6 (outbound) of Remoting connection 3e50039c to appl-prod/172.17.5.50:5947 2021-01-13 00:02:25 DEBUG ChannelAssociation:105 - Closing channel Channel ID b132a2d6 (outbound) of Remoting connection 3e50039c to appl-prod/172.17.5.50:5947 2021-01-13 00:02:25 ERROR ChannelAssociation:351 - Error on channel Channel ID b132a2d6 (outbound) of Remoting connection 3e50039c to appl-prod/172.17.5.50:5947 org.jboss.remoting3.MessageCancelledException at org.xnio.streams.BufferPipeInputStream.checkFailure(BufferPipeInputStream.java:279) at org.xnio.streams.BufferPipeInputStream.read(BufferPipeInputStream.java:171) at org.jboss.remoting3.remote.InboundMessage$3.read(InboundMessage.java:86) at java.io.DataInputStream.readFully(DataInputStream.java:195) at java.io.DataInputStream.readUTF(DataInputStream.java:609) at java.io.DataInputStream.readUTF(DataInputStream.java:564) at org.jboss.ejb.client.remoting.ModuleAvailabilityMessageHandler.processMessage(ModuleAvailabilityMessageHandler.java:78) at org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver.handleMessage(ChannelAssociation.java:395) at org.jboss.remoting3.remote.RemoteConnectionChannel$4.run(RemoteConnectionChannel.java:373) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)