sporadic "IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling"

Solution Verified - Updated -

Issue

  • While testing the applications under load, we get the error below from one server instance. This error is intermittent, across lots of invocations we see it only in about 10% of the invocations. Other invocations complete successfully.
  • we have a POJO inside of a deployed application which call an EJB but wee see an EJBCLIENT000025 Exception
  • in our deployed application we see sometimes this EJBCLIENT000025 errors

Here are examples of a stacktrace:

java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:appmodule, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@384e6d99
        at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:727)
        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.$Proxy42.publishLogException(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        ....
        at org.application.MessagingSessionFactory$MyConnectionExceptionListener.onException(MessagingSessionFactory.java:71)
        at org.hornetq.jms.client.HornetQConnection$JMSFailureListener$1.run(HornetQConnection.java:712)
        at java.lang.Thread.run(Thread.java:722)
java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:dataserver, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@4bc20400
        at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:727)
        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.$Proxy42.getDefaultEventConfig(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.application.RemoteEjbInvocationHandler.invoke(RemoteEjbInvocationHandler.java:184)
        at com.sun.proxy.$Proxy42.getDefaultEventConfig(Unknown Source)
        at com.application.Engine.start(Engine.java:937)
        at java.lang.Thread.run(Thread.java:722)

Environment

  • JBoss Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content