Why do I get the error "RTI Data Distribution Service No source for License information"?

The error "RTI Data Distribution Service No source for License information" happens when the license file cannot be found or the license has expired. If that is the case, the user application will be unable to initialize Connext DDS, depending on the terms of the license.

You can trigger this error, for example, when using an “eval” license. With this kind of license there is a runtime license check made against the applications. This license check is different from the one made by RTI Launcher. So, even though you have your license successfully registered within the RTI Launcher, that registration will not be valid when running your user applications. In that case, the application’s call to DomainParticipantFactory.create_participant() will return null, preventing communication.

In order to avoid this issue you should configure your environment to let the applications find the license file. Whenever an application starts, the application will look for a license file in the following locations until it finds a valid license:

  1. In the PropertyQosPolicy of the DomainParticipant, there may be a property called dds.license.license_string. You can set the property either in source code or in an XML file, such as:

    <participant_qos>
       <property>
           <value>
               <element>
                   <name>dds.license.license_string</name>
                   <value>contents of license file</value>
               </element>
           </value>
       </property>
    </participant_qos>
     

  2. In the PropertyQosPolicy of the DomainParticipant, there may be a property called dds.license.license_file. You can set the property either in source code or in an XML file, such as:

     <participant_qos>
       <property>
           <value>
               <element>
                   <name>dds.license.license_file</name>
                   <value>path to license file</value>
               </element>
           </value>
       </property>
    </participant_qos>

  3. In the location specified in the environment variable RTI_LICENSE_FILE, which you may set to point to the full path of the license file, including the filename, e.g., “C:\my_licenses\rti_license.dat”.
  4. In your rti_workspace/<RTI Connext DDS version number> directory, in a file called rti_license.dat.
  5. In your rti_workspace directory, in a file called rti_license.dat.
  6. In <NDDSHOME> (the RTI Connext DDS installation directory), in a file called rti_license.dat.

You can find more information in Section 2.4 “License Management” of the RTI Connext DDS Getting Started Guide.

Keywords: