Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ORB_init Problem

24 views
Skip to first unread message

Neil O'Connor

unread,
Mar 12, 2002, 6:06:05 AM3/12/02
to
ACE Version : 5.2
TAO Version : 1.2
Host Machine OS : WinNT4 SP6
Compiler Name : MSVC++ 6.0 SP3
Problem Type : Runtime Exception in Test Application

I am trying to test TAO using the simple version of the "Quoter" test
application supplied with the TAO freeware. There is a problem when I call
the client program.

> client MSFT RHAT
> CORBA exception raised! INV_OBJREF (IDL:omg.org/CORBA/INV_OBJREF:1.0)

In the main() function of client.cpp, ORB_init is called as follows:

CORBA::ORB_var orb =CORBA::ORB_init (argc, argv,"" /* the ORB name, it can
be anything! */);

Soon after the ORB_init, the "orb" variable is used. From what I can
establish, it is at this point that the exception is being raised. This is
the relevant line of code:

CORBA::Object_var factory_object =orb->string_to_object (argv[1]); /*
Note: This line causes the INV_OBJREF exception. */

This is the first use of the "orb" variable returned by the ORB_init call.
It looks like ORB_init failed to provide a valid orb.

How can I debug the ORB_init to find out why I am getting an invalid object
reference?

Neil O'Connor
Nortel Networks Corporation


Neil O'Connor

unread,
Mar 12, 2002, 7:00:55 AM3/12/02
to
ACE Version : 5.2
TAO Version : 1.2
Host Machine OS : WinNT4 SP6
Compiler Name : MSVC++ 6.0 SP3
Problem Type : Runtime Exception in Example Application

I am trying to test TAO using the simple version of the "Quoter" test
application supplied with the TAO freeware. There is a problem when I call
the client program.

> client MSFT RHAT
> CORBA exception raised! INV_OBJREF (IDL:omg.org/CORBA/INV_OBJREF:1.0)

In the main() function of client.cpp, ORB_init is called as follows:

CORBA::ORB_var orb =CORBA::ORB_init (argc, argv,"" /* the ORB name, it can
be anything! */);

Soon after the ORB_init, the "orb" variable is used. From what I can
establish, it is at this point that the exception is being raised. This is
the relevant line of code:

CORBA::Object_var factory_object =orb->string_to_object (argv[1]); /*
Note: This line causes the INV_OBJREF exception. */

This is the first use of the "orb" variable returned by the ORB_init call.

It looks like ORB_init failed to provide a valid orb. The value of the "orb"
variable accoring to MSVC++ is {....}

I've had a look at orb's attributes using data watch and a number of the
attributes have the following values:
CXX0030 Error: expression cannot be evaluated
CXX0017 Error: expression cannot be evaluated
These errors apply to orb's attributes such as the following:
implrepo_service_
typecode_factory_
ior_manip_factory_
poa_current_::ptr_

How can I decipher why ORB_init is not returning a valid ORB object?

Oleg

unread,
Mar 12, 2002, 9:06:13 AM3/12/02
to
Hi Neil,

"Neil O'Connor" <ne...@nortelnetworks.com> wrote in message
news:a6kq3h$59g$1...@bcarh8ab.ca.nortel.com...


>
> CORBA::Object_var factory_object =orb->string_to_object (argv[1]); /*
> Note: This line causes the INV_OBJREF exception. */
>

Make sure argv[1] != NULL in this call.

Oleg.


0 new messages