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
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?
"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.