6 Replies Latest reply on Sep 2, 2015 4:15 AM by necrolax

    EJB stateless issue EJBCLIENT000025: No EJB receiver available for handling

    necrolax Newbie

      Hi,

       

      I am trying to create an EJB stateless session bean in Wildfly 8.2. I need to create the stateless session without annotations and need where to configure appropriate properties in xml. I am getting the following error when i try to lookup the stateless bean

       

      Aug 29, 2015 6:44:42 PM org.jboss.ejb.client.EJBClient <clinit>

      INFO: JBoss EJB Client version 2.0.1.Final

      Proxy for remote EJB StatelessEJBLocator{appName='MyFirstSessionBeanExample', moduleName='MyFirstWildFlySessionBean', distinctName='', beanName='RemoteCalculator', view='interface com.wildfly.RemoteCalculatorRemote'}

      Obtained a remote stateless calculator for invocation

      Adding 204 and 340 via the remote stateless calculator deployed on the server

      Aug 29, 2015 6:44:42 PM org.xnio.Xnio <clinit>

      INFO: XNIO version 3.3.0.Final

      Aug 29, 2015 6:44:42 PM org.xnio.nio.NioXnio <clinit>

      INFO: XNIO NIO Implementation Version 3.3.0.Final

      Aug 29, 2015 6:44:43 PM org.jboss.remoting3.EndpointImpl <clinit>

      INFO: JBoss Remoting version 4.0.6.Final

      Aug 29, 2015 6:44:43 PM org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers

      WARN: Could not register a EJB receiver for connection to 10.223.30.88:4447

      java.lang.RuntimeException: java.io.EOFException: XNIO000812: Connection closed unexpectedly

        at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:92)

        at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:77)

        at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)

        at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:155)

        at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:115)

        at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47)

        at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:271)

        at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:281)

        at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:176)

        at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)

        at com.sun.proxy.$Proxy0.Add(Unknown Source)

        at com.wildfly.Client.invokeStatelessBean(Client.java:47)

        at com.wildfly.Client.main(Client.java:28)

      Caused by: java.io.EOFException: XNIO000812: Connection closed unexpectedly

        at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:416)

        at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:400)

        at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

        at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)

        at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)

        at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)

        at ...asynchronous invocation...(Unknown Source)

        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)

        at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:388)

        at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:187)

        at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:153)

        at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:133)

        at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)

        ... 11 more

       

       

      Exception in thread "main" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:MyFirstSessionBeanExample, moduleName:MyFirstWildFlySessionBean, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@335eadca

        at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:749)

        at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)

        at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186)

        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.$Proxy0.Add(Unknown Source)

        at com.wildfly.Client.invokeStatelessBean(Client.java:47)

        at com.wildfly.Client.main(Client.java:28)

       

       

      Could anyone please suggest when we will get this error ??

       

      Any working sample code ??