0 Replies Latest reply on Mar 23, 2006 9:18 PM by ijaffery12

    javax.naming.CommunicationException

    ijaffery12

      I am trying to connect from a jboss behinfd the firewall to jboss inside the firewall and getting this exception:

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
      2006-03-23 19:54:18,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
      2006-03-23 19:54:18,197 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)

      from inside the network it works fine.
      My code snippest is

       Properties p1 = new Properties();
       p1.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
       p1.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
       p1.put(Context.PROVIDER_URL, "server_external_IP_Address:1099");
       Context ctx1 = new InitialContext(p1);
       Object externalJobIntegerationMgmtHomeRef = ctx1.lookup(ExternalJobIntegerationMgmtHome.JNDI_NAME);
       externalJobIntegerationMgmtHome = (ExternalJobIntegerationMgmtHome)PortableRemoteObject.narrow(externalJobIntegerationMgmtHomeRef, ExternalJobIntegerationMgmtHome.class);
      

      All ports are open I can do telnet on 1099,1098,4444 and many more...
      Any idea why it is happening?

      Cheers,

      IJ