exception

1 post / 0 new
Offline
Last seen: 12 hours 56 min ago
Joined: 09/10/2022
Posts: 39
problem in using matched_publication_participant_data

Hi, I'm trying to use function matched_publication_participant_data() to achive domain_partipant's name of matched publishers. But as modern c++ ducument said, if matched_publisher and data reader where in the same domain_participant, it will throw an exception. how can I know that the matched_publisher and data_reader are in the same domain_participant to don't use function matched_publication_participant_data() for that matched_publisher?

2 posts / 0 new
Last post
Offline
Last seen: 3 years 1 month ago
Joined: 02/20/2020
Posts: 6
System.Runtime.Serialization.SerializationException: 'Type 'DDS.Retcode_PreconditionNotMet'

I'm creating integration tests for my DDS application. To acquire readers, writers I'm using configuration through QoS XMLs. When running two specific test cases from the total of 32 cases, the second case always fails. When debugging the code, there seems to be a problem in my configuration, but I can't seem to figure it out. There is an ErrorCode from DDS, but that generates a SerializationException:

Stacktrace:

3 posts / 0 new
Last post
Offline
Last seen: 8 years 4 months ago
Joined: 08/22/2016
Posts: 2
TypeSupport.serialize causing ArrayIndexOutOfBoundsException

I have an idl file that defines a char[] in a struct as follows:

struct baseDataHdr_S {
octet paramId[16];
short miscHdrBytes;
};

The autogenerated Java code looks correct, but when sending the Topic I get an error:

java.lang.ArrayIndexOutOfBoundsException: 8
at ...baseDataHdr_STypeSupport.serialize

Looking in the java code the char[] is correctly defined as a char[16], so I'm stumped why indexing char[8] during serialization would cause this exception.

Subscribe to RSS - exception