<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Problem with: No EJB receiver available
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/fpezzati">francesco pezzati</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/746301#746301">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm facing strange behaviour. Sometimes, when I try to invoke a session bean, I run into the following exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List myServlet.getData() throws myException' threw an unexpected exception: java.lang.IllegalStateException: No EJB receiver available for handling [appName:myAppNameEE,modulename:myModuleEJB,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@3e23bd28</p><p>    at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)</p><p>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)</p><p>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)</p><p>    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)</p><p>    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)</p><p>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)</p><p>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p>    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)</p><p>    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)</p><p>    at com.myapp.server.myServletController.doFilter(LoginControllerFilter.java:51)</p><p>    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)</p><p>    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)</p><p>    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)</p><p>    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)</p><p>    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)</p><p>    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)</p><p>    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)</p><p>    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)</p><p>    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)</p><p>    at org.mortbay.jetty.Server.handle(Server.java:324)</p><p>    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)</p><p>    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)</p><p>    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)</p><p>    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)</p><p>    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)</p><p>    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)</p><p>    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)</p><p>Caused by: java.lang.IllegalStateException: No EJB receiver available for handling [appName:myAppEE,modulename:myModuleEJB,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@3e23bd28</p><p>    at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)</p><p>    at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)</p><p>    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)</p><p>    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)</p><p>    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)</p><p>    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)</p><p>    at $Proxy36.findAllUfficio(Unknown Source)</p><p>    at com.myapp.ejb.session.delegates.myDelegate.getData(myDelegate.java:29)</p><p>    at com.myapp.web.server.myServlet.getData(myServlet.java:161)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p>    at java.lang.reflect.Method.invoke(Method.java:597)</p><p>    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)</p><p>    ... 25 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>It usually happens when run my GWT application from Eclipse. The exception does not occur always. Sometimes it occurs fewer than others. Sometimes it occurs pretty every time I call a session bean and it's a pain. I read tutorial (</span><a class="jive-link-external-small" href="https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI?_sscc=t" target="_blank">https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI?_sscc=t</a><span>) and I am pretty sure to have the jboss-ejb-client.properties in the right place. I can't figure out what's going on. TIA.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Francesco</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/746301#746301">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>