[omniORB] omniORBpy URI and omniORB (C++) URI Conversion

Duncan Grisby dgrisby@uk.research.att.com
Tue, 22 May 2001 11:58:18 +0100


On Monday 21 May, Wilson Jimmy - jiwils wrote:

> "corbaloc::acxser3:1570/:%5cacxser3:adnerrorservice:0::IFR:ADNErrorServiceFa
> ctory%00"
> 
> Note the %5c (\) and %00 (NULL) characters.
> 
> Then, I pass the above URI to ORB.string_to_object and an object is
> returned.  I then narrow that object to the type it should be.
> 
> Now I want to do the same thing in C++.  So, I altered the %5c character to
> be \\ and the %00 character to be \0.  That makes the URI shown below.

Why did you do that?  You've turned it from a valid corbaloc URI into
an invalid one (in fact an invalid URI of any kind). Use the same
string as for Python and it will work fine.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --