Forums Register Login

Problem in binding a name to an Object.

+Pie Number of slices to send: Send
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 :-)
+Pie Number of slices to send: Send
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.
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 799 times.
Similar Threads
DataSource lookup problem from WebSphere 5.1 Stand alone Client Program
JNDI exception
Facibg problem in connecting from java IDL Corba Server from Client running in Websphere
Naming Exception in ServiceLocator
Websphere 6.1.0.0 Lookup
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:21:22.