Problems using Naming Service in VisiBroker for C++ 4.1

Problems using Naming Service in VisiBroker for C++ 4.1

Post by Ganesh Chak » Sun, 24 Jun 2001 04:57:04



HI,

I am trying to run the test program:
VISIHOME/examples/basic/bank_naming
in  visibroker for C++ 4.1. I am not able to get the program working.

I alway get the exception "CORBA_ORB_InvalidName".

I tried to list the initial references, and I can see the
"NamingService" in the list.

This is how I am running my naming service:
nameserv -VBJdebug -J-Dvbroker.se.iiop_tp.scm.iiop_tp.listener.port=14100

and I am running my Server as follows:
"Server -ORBInitRef
NameService=iioploc://143.91.14.31:14100/NameService"

This is where it fails (with the exception CORBA_ORB_InvalidName):

        CosNaming::NamingContextExt_var rootContext =
CosNaming::NamingContextExt::_narrow(obj);

could some one tell if I am missing something.

Thanks in advance.

-Ganesh.

 
 
 

Problems using Naming Service in VisiBroker for C++ 4.1

Post by Bill Lloy » Sun, 24 Jun 2001 05:10:42


have you tried corbaloc instead of iioploc?  Maybe they desupported the
deprecated call.  That would be a bit hasty though.

-B


Quote:> HI,

> I am trying to run the test program:
> VISIHOME/examples/basic/bank_naming
> in  visibroker for C++ 4.1. I am not able to get the program working.

> I alway get the exception "CORBA_ORB_InvalidName".

> I tried to list the initial references, and I can see the
> "NamingService" in the list.

> This is how I am running my naming service:
> nameserv -VBJdebug -J-Dvbroker.se.iiop_tp.scm.iiop_tp.listener.port=14100

> and I am running my Server as follows:
> "Server -ORBInitRef
> NameService=iioploc://143.91.14.31:14100/NameService"

> This is where it fails (with the exception CORBA_ORB_InvalidName):

>         CosNaming::NamingContextExt_var rootContext =
> CosNaming::NamingContextExt::_narrow(obj);

> could some one tell if I am missing something.

> Thanks in advance.

> -Ganesh.


 
 
 

Problems using Naming Service in VisiBroker for C++ 4.1

Post by Brian Kell » Sun, 24 Jun 2001 05:43:07


In addition, make sure you are using the string "NameService"
rather than "NamingService" in both the URLs and your call
to resolve_initial_references().

Cheers,
Brian

> have you tried corbaloc instead of iioploc?  Maybe they desupported the
> deprecated call.  That would be a bit hasty though.

> -B



> > HI,

> > I am trying to run the test program:
> > VISIHOME/examples/basic/bank_naming
> > in  visibroker for C++ 4.1. I am not able to get the program working.

> > I alway get the exception "CORBA_ORB_InvalidName".

> > I tried to list the initial references, and I can see the
> > "NamingService" in the list.

> > This is how I am running my naming service:

nameserv -VBJdebug -J-Dvbroker.se.iiop_tp.scm.iiop_tp.listener.port=14100

- Show quoted text -

Quote:

> > and I am running my Server as follows:
> > "Server -ORBInitRef
> > NameService=iioploc://143.91.14.31:14100/NameService"

> > This is where it fails (with the exception CORBA_ORB_InvalidName):

> >         CosNaming::NamingContextExt_var rootContext =
> > CosNaming::NamingContextExt::_narrow(obj);

> > could some one tell if I am missing something.

> > Thanks in advance.

> > -Ganesh.