Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IDL:omg.org/CORBA/ORB/InvalidName:1.0 error

843793Sep 13 2006
Hello all
im trying to connect to throw my name service without IOR but with
the host and port , ( by the way when I working with ior it is working fine )
I doing this simple example taken from sun's java site :

Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", "12345");
props.put("org.omg.CORBA.ORBInitialHost", "localhost");
String[] newArgs = new String[0];
ORB orb = ORB.init(newArgs,props);
org.omg.CORBA.Object obj = orb.resolve_initial_references("NameService");


but im getting error saying :
org.omg.CORBA.ORBPackage.InvalidName: IDL:omg.org/CORBA/ORB/InvalidName:1.0
at org.jacorb.orb.ORB.resolve_initial_references(ORB.java:1231)

using jac orb as client orb and visibroker as server orb
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2006
Added on Sep 13 2006
0 comments
1,281 views