[omniORB] Re: value type: Marshall error

Duncan Grisby duncan at grisby.org
Fri Oct 7 18:53:51 BST 2005


On Friday 30 September, =?Windows-1251?Q?=C0=ED=E4=F0=E5=E9_=CF=F3=F7=E8=ED?= wrote:

> Duncan, explain me plz.
> 
> I guess, that 67 is a buffer size, however TAO expects here 68.
> Why? TAO needs alignment by 4? Can i force align of that buffer?

I don't know why TAO is expecting 68. 67 is the correct value, meaning
103 bytes. You've shown 96 of the 103. The last 4 bytes show that
after what you've shown, there's a 7 byte string (including a null
terminator). That adds up to 103.

Depending on what comes next in the GIOP stream, there may be a padding
byte after the encapsulation containing the enum typecode, but that
shouldn't be counted as part of the length of the encapsulation.
Whatever is wrong, it's wrong with TAO.

Cheers,

Duncan.

> 47 49 4f 50 01 02 01 00  60 01 00 00 04 00 00 00   GIOP....`.......
> 03 00 00 00 00 00 00 00  1b 00 00 00 14 01 0f 00   ................
> 52 53 54 ee d2 3b 43 7e  56 03 00 00 00 00 00 01   RST..;C~V.......
> 00 00 00 01 00 00 00 74  07 00 00 00 73 65 61 72   .......t....sear
> 63 68 00 6d 01 00 00 00  01 00 00 00 0c 00 00 00   ch.m............
> 01 00 00 00 01 00 01 00  09 01 01 00 50 6f 6f 6c   ............Pool
> 01 00 00 00 00 00 00 00  01 00 00 00 1d 00 00 00   ................
> c6 00 00 00 01 96 9e 00  20 00 00 00 49 44 4c 3a   ........ ...IDL:
> 56 61 6c 75 65 54 65 73  74 2f 51 75 65 72 79 44   ValueTest/QueryD
> 69 63 74 44 61 74 61 3a  31 2e 30 00 0e 00 00 00   ictData:1.0.....
> 51 75 65 72 79 44 69 63  74 44 61 74 61 00 00 00   QueryDictData...
> 00 00 00 00 01 00 00 00  0a 00 00 00 6f 70 65 72   ............oper
> 61 74 69 6f 6e 00 00 00  11 00 00 00 67 00 00 00   ation.......g...
>                                     ^^^^
> 01 21 34 7c 21 00 00 00  49 44 4c 3a 56 61 6c 75   .!4|!...IDL:Valu
> 65 54 65 73 74 2f 4c 6f  67 69 63 4f 70 65 72 61   eTest/LogicOpera
> 74 69 6f 6e 3a 31 2e 30  00 00 00 00 0f 00 00 00   tion:1.0........
> 4c 6f 67 69 63 4f 70 65  72 61 74 69 6f 6e 00 00   LogicOperation..
> 03 00 00 00 06 00 00 00  4c 4f 5f 4f 52 00 00 00   ........LO_OR...
> 07 00 00 00 4c 4f 5f 41  4e 44 00 00 07 00 00 00   ....LO_AND......

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



More information about the omniORB-list mailing list