[omniORB] Java client works locally, fails remotely

Mark Zimmerman markzimm at frii.com
Tue Jun 28 14:28:50 BST 2005


Sorry, Never Mind...

The real problem was that the remote machine had an old version of
java installed.

-- Mark


On Tue, Jun 28, 2005 at 12:29:15PM -0600, Mark Zimmerman wrote:
> 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
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list



More information about the omniORB-list mailing list