1 Reply Latest reply on May 4, 2018 2:56 PM by sranjeeta

    EJBCLIENT000409: No more destinations are available


      Hello folks,


      We are migrating from jboss 5 to EAP 7 and we have a hard time in figuring out the issue to lookup JNDI. Below is the error we are getting, any help would be greatly appreciated.


      Suppressed: org.jboss.ejb.client.RequestSendFailedException

      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)

      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)

      at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)

      at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

      at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)

      Caused by: java.io.IOException: JBREM000202: Abrupt close on Remoting connection 3eec3b2a to / of endpoint

        • 1. Re: EJBCLIENT000409: No more destinations are available

          Adding some more information to the above thread.


          When the Initial context is derived as below , it gives the error : No more destination - caused by Abrupt close on Remoting connection

          Hashtable jndiProps = new Hashtable();


          jndiProps.put(InitialContext.PROVIDER_URL, "remote://");

          InitialContext  context = new InitialContext(jndiProps);


          When the initial context is derived as

          Hashtable<String, String> env = new Hashtable<String, String>();

          env.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");

          env.put(Context.PROVIDER_URL, "http-remoting://");

          InitialContext  context = new InitialContext(env);


          It gives the error : No more destination - caused by No such ejb found.


          Which one is correct way of initializing the InitialContext?