• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in binding a name to an Object.

 
Janaranjani K
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I'm new to this Corba world. I'm facing an issue while binding a name to an Object. The code is :

NamingContext ncRef = NamingContextHelper.narrow(ncObj);// ncObj- stringification of IOR.
System.out.println("2....The Naming context is : " + ncRef);

System.out.println("Creating NameComponent array...");
NameComponent[] nc = parse(config.getCorbaContext());

System.out.println("Bind the Object Reference in Naming...");
ncRef.rebind(nc, href);


The error i got during execution is:


ERROR: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
org.omg.CosNaming.NamingContextPackage.NotFound: IDL mg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
at org.omg.CosNaming._NamingContextStub.rebind(_NamingContextStub.java:159)
at com.qwest.ums.umsim.UmsSimulatorServer.main(Unknown Source)


Please help me out...

Thanks in Advance :-)
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done this stuff, but I am a bit rusty. I can offer a guess at the problem, but no guarantees.

My hunch is that the Name you are binding to has multiple NameComponents and some of those do not exist. You have to create all the intermediate NamingContexts explicitly; they do not get created automatically.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!