[omniORB] Contacting the omniORB3 name server from Java2 CORB A

Duncan Grisby dgrisby@uk.research.att.com
Mon, 26 Nov 2001 10:57:01 +0000


On Monday 26 November, "Bang, Steinar" wrote:

> > Platform: Intel PIII, RedHat linux 7.2, gcc 2.96
> > 	omniORB 3.0.2, Sun JDK 1.3.1
> > 
> > I am trying to contact the omniORB3 name server from
> > the built-in ORB of Java2.

The reason the corbaname URI doesn't work is that JDK 1.3 doesn't
support it. The documentation you were reading was about JDK 1.4.

> Again trying blindly, I'm using 
>          props.setProperty("org.omg.CORBA.ORBInitialHost",
>                            "localhost");
>          props.setProperty("org.omg.CORBA.ORBInitialPort",
>                            "2809");
> to set up where to look for the name service.

That would work in theory...

> This at least gives me java.lang.ArrayIndexOutOfBoundsException,
> instead of an org.omg.CORBA_COMM_FAILURE exception.

Except that there's a bug in the JDK ORB. See the FAQ:

  http://www.uk.research.att.com/cgi-bin/omni-wiki/moin.cgi/FrequentlyAskedQuestions#line243

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --