[Ace-users] Re: [tao-users] Notification Service Issue: Marshalling
exception for nestedstruct in 5.5.10, but not for 5.5.9
Johnny Willemsen
jwillemsen at remedy.nl
Fri Aug 10 13:25:27 CDT 2007
Hi,
Thanks, one thing to try out, can you take the file
tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp from 1.5.9 and put it in 1.5.10,
rebuild and see if things run then?
Johnny
> I'm sending the RecordsSequence defined with a generic
> version of the IDL
> below:
>
> typedef string NameType;
>
> typedef string IdType;
>
> typedef string TimestampStringType;
>
> typedef long long TimestampType;
>
> struct HeaderData {
> TimestampType timestamp;
> TimestampStringType timestampString;
> IdType id;
> NameType name;
> };
>
>
> struct Point {
> double x;
> double y;
> };
>
> typedef sequence<Point> Polyline;
>
> typedef sequence<Polyline> Polylines;
>
> enum DataType {A, B, C};
>
> struct Data {
> DataType type;
> double value;
> double value2;
> double value3;
> Polylines lines;
> Polylines lines2;
> };
>
> struct Record {
> HeaderData header;
> Data myData;
> };
>
> typedef sequence<Record> RecordSequence;
>
> typedef sequence<RecordSequence> RecordsSequence;
>
> The Notification message has a few parameters using this Java code:
>
> StructuredEvent dataEvent = new StructuredEvent();
>
> EventType type = new EventType("Type",
> dataType); // should we use IDL
> typecode?
> FixedEventHeader fixed = new
> FixedEventHeader(type,"event");
>
> Property variable[] = new Property[0];
>
> dataEvent.header = new EventHeader(fixed, variable);
>
> dataEvent.filterable_data = new Property[4];
>
> Any timeAny = orb.create_any();
> timeAny.insert_string(timestamp.toString());
> dataEvent.filterable_data[0] = new
> Property("timestamp", timeAny);
>
> Any timeNanosAny = orb.create_any();
>
> timeNanosAny.insert_longlong(TimestampConverter.getTimeAsNanos
> (timestamp));
> dataEvent.filterable_data[1] = new
> Property("timestampNanos",
> timeNanosAny);
>
> Any idAny = orb.create_any();
> idAny.insert_string( id);
> dataEvent.filterable_data[2] = new
> Property("Id", idAny);
>
> Any nameAny = orb.create_any();
> nameAny.insert_string(name);
> dataEvent.filterable_data[3] = new
> Property("name", nameAny);
>
> These fields in the Notification message are in all the
> events so I don't
> think they are the culprit.
>
> Let me know if you need any other info.
>
> Thanks!
>
> Rob
>
>
> Original Message:
> -----------------
> From: Johnny Willemsen jwillemsen at remedy.nl
> Date: Fri, 10 Aug 2007 18:19:14 +0200
> To: rrr6399 at futuretek.com, tao-users at cse.wustl.edu,
> Simon.Massey at prismtech.com
> Subject: Re: Notification Service Issue: Marshalling exception for
> nestedstruct in 5.5.10, but not for 5.5.9
>
>
> Hi,
>
> Thanks for using the PRF form. Can you give insight in the
> type of structs
> you send? Simon, can you have a look, you made some changes
> between 1.5.9
> and 1.5.10 related to indirect typecodes which should have improved
> interoperability between JacORB and TAO.
>
>
>
> --------------------------------------------------------------------
> mail2web LIVE - Free email based on MicrosoftR Exchange technology -
> http://link.mail2web.com/LIVE
>
>
>
More information about the Ace-users
mailing list