• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Problem in binding a name to an Object.

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-)
 
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic