[omniORB] Java client works locally, fails remotely

Mark Zimmerman markzimm at frii.com
Tue Jun 28 13:29:15 BST 2005


Greetings:

I am trying out java so I wrote a small java program that connects to a
server written with omniORB. If I run it on the same machine that is
running OmniNames, it works fine. If I run it remotely, it gets a
COMM_FAILURE exception when it calls resolve_initial_references. I am
not yet trying anything that I do not already have working in C++ and
Python.

Here is the relevant code:

      Properties props = new Properties();
      props.put("org.omg.CORBA.ORBInitRef",
                "NameService=corbaname::cswfsu01:7716");
      try {
         org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,props);
         org.omg.CORBA.Object tmp =
            orb.resolve_initial_references("NameService");
         NamingContext rootContext = NamingContextHelper.narrow(tmp);

The stack trace starts with:

org.omg.CORBA.COMM_FAILURE:   minor code: 1  completed: No

I have also tried replacing the host name with the IP address; no
change.

Is there something special I need to do when running a java app
remotely?

-- Mark



More information about the omniORB-list mailing list