IDL to ASN String length mismatch

This is a discussion on IDL to ASN String length mismatch within the Object forums in Theory and Concepts category; Hi, I'm converting the IDL string data to ASN Graphic String .. After coping the string the length of the ASN String data is one more than the IDL data. I'm using jacorb and TAO orb for CORBA implementation. Is this is a known problem ? Thanks in Advance, Arun V....

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-30-2008, 11:06 PM
arun.viswanath@gmail.com
Guest
 
Default IDL to ASN String length mismatch

Hi,

I'm converting the IDL string data to ASN Graphic String .. After
coping the string the length of the ASN String data is one more than
the IDL data. I'm using jacorb and TAO orb for CORBA implementation.
Is this is a known problem ?

Thanks in Advance,
Arun V.
Reply With Quote
  #2  
Old 07-31-2008, 01:36 AM
Douglas C. Schmidt
Guest
 
Default Re: IDL to ASN String length mismatch

Hi Arun,

>I'm converting the IDL string data to ASN Graphic String .. After
>coping the string the length of the ASN String data is one more than
>the IDL data. I'm using jacorb and TAO orb for CORBA implementation.
>Is this is a known problem ?


It's not really clear what problem you're having. In addition to give
a small example that shows the problem, please make sure to send all
questions related to TAO to the TAO mailing list or ACE+TAO newsgroup
comp.soft-sys-ace, rather than to comp.object.corba directly since the
TAO gurus tend to hang out there. See

http://www.cs.wustl.edu/~schmidt/TAO-mail.html

for more info on how to access these resources.

In addition, to ensure that we have proper version/platform/compiler
information, please make sure you fill out the appropriate problem
report form (PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO. Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.

Thanks,

Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt@vanderbilt.edu
Reply With Quote
  #3  
Old 08-01-2008, 07:43 PM
ciaran.mchale@iona.com
Guest
 
Default Re: IDL to ASN String length mismatch

On 31 Jul, 04:06, "arun.viswan...@gmail.com"
<arun.viswan...@gmail.com> wrote:
> I'm converting the IDL string data to ASN Graphic String .. *After
> coping the string the length of the ASN String data is one more than
> the IDL data. I'm using jacorb and TAO orb for CORBA implementation.
> Is this is a known problem ?


I've never used ASN, but I did a Google search to find some
information on its encoding rules. From what I read I suspect that
a string is being encoded as <length><characters><null-byte>
and <length> is set to be the length of the string plus 1, with the
extra 1 in the length being for the terminating null byte.

Regards,
Ciaran.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:15 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.