Discussion:
[omniORB] corbaloc and encoding
Antonio Beamud Montero
2008-11-06 23:38:02 UTC
Permalink
Hi all:
If I try to call a remote method from a service that returns a list of
wstring names, the next exception raises:

BAD_PARAM: CORBA.BAD_PARAM(omniORB.BAD_PARAM_WCharTCSNotKnown,
CORBA.COMPLETED_YES)

In a older post, Duncan Grisby reference this problem when you are using
corbaloc to get the object reference, but...

I'm using a omniorb client and server and they by default are using
nativeWCharCodeSet = UTF-16, why not use this defaults?

or, is now posible to specify the enconding in the corbaloc?
Duncan Grisby
2008-11-19 20:55:57 UTC
Permalink
Post by Antonio Beamud Montero
If I try to call a remote method from a service that returns a list of
BAD_PARAM: CORBA.BAD_PARAM(omniORB.BAD_PARAM_WCharTCSNotKnown,
CORBA.COMPLETED_YES)
In a older post, Duncan Grisby reference this problem when you are using
corbaloc to get the object reference, but...
I'm using a omniorb client and server and they by default are using
nativeWCharCodeSet = UTF-16, why not use this defaults?
Because the CORBA spec says that if an object reference has no encoding
information, the default is ISO-8859-1 for strings and no setting for
wstrings.
Post by Antonio Beamud Montero
or, is now posible to specify the enconding in the corbaloc?
You can't! You should use the corbaloc to reference a bootstrap object
that returns the real object reference for your service. That way, the
object reference will include full code set information and everything
will work.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Antonio Beamud Montero
2008-11-19 21:17:45 UTC
Permalink
Post by Duncan Grisby
Post by Antonio Beamud Montero
I'm using a omniorb client and server and they by default are using
nativeWCharCodeSet = UTF-16, why not use this defaults?
Because the CORBA spec says that if an object reference has no encoding
information, the default is ISO-8859-1 for strings and no setting for
wstrings.
Ok.
Post by Duncan Grisby
Post by Antonio Beamud Montero
or, is now posible to specify the enconding in the corbaloc?
You can't! You should use the corbaloc to reference a bootstrap object
that returns the real object reference for your service. That way, the
object reference will include full code set information and everything
will work.
Yes, I've created a Factory object, accessible via corbaloc, where I
register the rest of the references and act like a Name Service, but
with additional facilities.

A lot of thanks.
Post by Duncan Grisby
Cheers,
Duncan.
Loading...