Client is running in its own JVM outside JBoss and after several successful calls, we occasionally get the exception below. We are using remote: protocol to lookup the EJB
java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:test, moduleName:example, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@77cab87f at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:588) 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.doInvoke(EJBInvocationHandler.java:136) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) at $Proxy0.makeRequest(Unknown Source) ...
If the EJB is called direct or after a short period the invocation will work, if there is a longer time between lookup and invocation it fails.
What could be the reason of the error?