[omniORB] DATA_CONVERSION problem with omniORB 4.1.4

Duncan Grisby duncan at grisby.org
Fri Sep 14 11:00:09 BST 2012


On Mon, 2012-09-10 at 12:41 -0500, Jingdong Sun wrote:

> By some update, I am using IOR for client to set connection with
> server. But problem still there. 
> 
> What I am doing as below: 
> 1. From both client and server sides, at the ORB initial time, set
> nativeCharCodeSet=UTF-8. 
> 2.1. At server: run CORBA::ORB_init(argc, argv, "omniORB4") to create
> a ORB object. 
> 2.2. Using above ORB object for the server, and save IOR into string
> by calling CORBA::Object_ptr->object_to_string(obj); 
> 3.1: At client side, run CORBA::ORB_init(argc, argv, "omniORB4") to
> create a ORB object too. 
> 3.2. get saved IOR string for the server, and using it to set up
> client and server connection as below: 
>         CORBA::Object_var _service_obj = _app_orb->string_to_object
> (ior.c_str()); 
>         _narrow(_service_obj); 

That certainly should work. Please post the IOR string you are using,
and a complete trace from the client from -ORBtraceLevel 25.

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --





More information about the omniORB-list mailing list