How to determine cause of create_datawriter() failure

3 posts / 0 new
Last post
Frank J. Crow's picture
Offline
Last seen: 12 years 10 months ago
Joined: 04/08/2011
Posts: 12
How to determine cause of create_datawriter() failure

The documentation states that the create_datawriter() or create_datawriter_with_profile() methods will return a null reference on certain conditions.   Is there any way to determine the cause of these errors?   I've seen that the method fails when certain QOS settings are inconsistent, but it would really be nice to know which ones, etc.

 

Thanks,

Frank

 

Organization:
Fernando Garcia's picture
Offline
Last seen: 3 months 4 hours ago
Joined: 05/18/2011
Posts: 200

 

Hi,

One way to do this is to enable warnings in the errors that are printed out to the console (this is not the default configuration). This will require the code to be updated to modify the verbosity and rerun.

Because this is inconvenient in general a member of the RTI's tools team developed a  Java utility which you can run from the command line and pass it the XML QoS profile file that is giving you a problem and it will print the issues.

 

We have uploaded this utility to the File Exchange section of the portal. You can find it at: http://community.rti.com/filedepot

Look for the file called QosConsistencyTester.zip  unzip it and there is a readme.txt that explains how to use it.

 

Let us know if this works... We are thinking of better ways to address this issue.


Frank J. Crow's picture
Offline
Last seen: 12 years 10 months ago
Joined: 04/08/2011
Posts: 12

It's a little rough around the edges... but that is certainly something in the right direction.   It sends a lot of stuff to the output and looks like it is throwing here and there.   Kind of difficult to use.

 

-Frank