[omniORB] Naming Service problem

Himanshu Cabra himanshu@motechsoft.com
Wed, 16 Jan 2002 18:23:44 +0530


Hi,

I am trying to run the naming service example from omniORB doc: eg3_impl.=
cc
& eg3_clt.cc The naming service starts properly but the server cannot det=
ect
the naming service. When I run eg3_impl I get the following error message=
:
Configuration error: Invalid object reference supplied for NAMESERVICE.
Abort

I have followed the below procedure:

I have started the naming service by the following command:
omniNames -start 12345

This starts the naming service properly and shows the following informati=
on
on the console.
Wed Jan 16 15:42:12 2002:

Starting omniNames for the first time.
Wrote initial log file.
Read log file successfully.
Root context is
IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696=
e6
7436f6e746578743a312e3000010000000000000028000000010100000d00000031302e31=
323
52e35302e373200
0039300c0000003c4520c41e7e93cd00000002
Checkpointing Phase 1: Prepare.
Checkpointing Phase 2: Commit.
Checkpointing completed.

I have copied the root context IOR which I got after starting the naming
service in the omniORB.cfg file as:

NAMESERVICE
IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696=
e67
436
f6e746578743a312e3000010000000000000028000000010100000d00000031302e313235=
2e3
5302e3732000039
300c0000003c4520c41e7e93cd00000002

The portno. in the /etc/omniorb.cfg file is also:
ORBInitialPort 12345

I have followed all the instructions of the manual, but still the problem=
 is
there.

I am very confused as the same IOR is working very fine with the nameclt
utility.

Could anyone please advise me, where I am wrong or which portion I am
missing.

Thanks a lot for your time.

Regards,
Himanshu Cabra
Software Engineer,
Motech Software Pvt. Ltd.


*************************************************************************=
*************************************************************
This email is intended solely for individual/entity named above, and may =
contain confidential and/or privileged information
of the sender. Any unauthorized and wrongful access or use of the same by=
 person other than addressee is strictly
prohibited and shall make that person liable for legal consequences as pe=
r the applicable laws.=20
In case of receipt of this email by error, please delete the same and not=
ify the sender immediately.=20
The contents of this email may not truly reflect the business and affairs=
 of MoTech and the same should not be
treated as an opinion, suggestion or advice in any way. MoTech disclaims =
all responsibilities/liabilities with=20
regard to contents of this email.=09
=A9 MoTech Software Pvt. Ltd 2002