Re: BUG in CORBA_ORB_object_to_string, created bad IOR, .....





David Eriksson wrote:
On Thursday 01 March 2001 15:10, you wrote:
Hello all,
I have o problem using the ORBit CORBA_ORB_object_to_string method. I am
...............
[snip]

I belive you have a truly invalid IOR:
That's the problem!

-----

$ ior-decode
'IOR:010000001900000049444c3a4c412f4c697374656e616e73696368743a312e3000000000020000000000000048000000010100000e0000003139322e3136382e312e313838000dc92c00000000564201000000115642526f6f74504f412f626f615f74700020202000000002323820203a9e3d0c000d97bd'
Tags known:
TAG_INTERNET_IOP: 0x0
TAG_MULTIPLE_COMPONENTS: 0x1
TAG_ORBIT_SPECIFIC: 0xbadfaeca

Object ID: IDL:LA/Listenansicht:1.0
Profile count: 2

Profile type: TAG_INTERNET_IOP
Object endian: Little
IIOP version: 1.0
Host: 192.168.1.188
Port: -14067
Object key: ".VB.....VBRootPOA/boa_tp. ....28 :.=....."

Profile type: TAG_INTERNET_IOP
[DEBUG ]: CDR_buffer_gets: attempt to read past end of buffer

-----

(Output produced by ior-decode from ORBit 0.5.6)

Note: the port number is just printed as a signed short, not unsigned, so
that should not be t! he problem.

And when I try iordump from MICO 2.3.1, I get "error: illegal object
reference", so it's not only ORBit that cannot handle your IOR.
Yes, but the IOR is generated by ORBit! This IOR was in the warning from the ORBit's CORBA_object_to_string method, as the method returns NULL instead of the string desired.
So why did ORBit generates a bad IOR? It has no problem to invoke methods on the same reference. I think that it just gives me a warning (** WARNING **: IOP_TAG_MULTIPLE_COMPONENTS decoding needs finishing) but in rest is ok. So a method invocation works, but the CORBA_object_to_string method does not.
Why?


   Sergiu Gavrila



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]