2 Replies Latest reply on Oct 26, 2012 10:07 AM by lauradp

    javax.naming.NamingException: Failed to create remoting connection h

    lauradp

      Hello Everybody,

      I was trying to extabilish a connection to a queue using the following method:

       

      public static InitialContext getInitialContext(String PROVIDER_URL, String username, String password) {

                          Context remoteContext = null;

                          try {

                                         remoteContext = new InitialContext();

                          } catch (NamingException e) {

                                         e.printStackTrace();

                          }

                          return (InitialContext) remoteContext;

                }

       

      but I got the following expection:

       

      26-ott-2012 12.34.17 org.xnio.Xnio <clinit>

      INFO: XNIO Version 3.0.3.GA

      26-ott-2012 12.34.25 org.xnio.nio.NioXnio <clinit>

      INFO: XNIO NIO Implementation Version 3.0.3.GA

      26-ott-2012 12.34.29 org.jboss.remoting3.EndpointImpl <clinit>

      INFO: JBoss Remoting version 3.2.3.GA

      javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: Operation failed with status WAITING]

                at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)

                at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:121)

                at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

                at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

                at javax.naming.InitialContext.init(Unknown Source)

                at javax.naming.InitialContext.<init>(Unknown Source)

                at writer.QueueWriter.getInitialContext(QueueWriter.java:73)

                at writer.runWriter.main(runWriter.java:29)

      Caused by: java.lang.RuntimeException: Operation failed with status WAITING

                at org.jboss.naming.remote.protocol.IoFutureHelper.get(IoFutureHelper.java:89)

                at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:56)

                at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore(InitialContextFactory.java:166)

                at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:139)

                at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:104)

                ... 6 more

       

      How can I solve this error?

       

      NOTE: See confs attached.

       

      Thanks

      Laura