The error message "ERROR: InfoRepoDiscovery::get_dcps_info: failed to resolve ior" typically indicates a problem in a Distributed Data Service (DDS) application, particularly with OpenDDS. This error suggests that the application is attempting to retrieve Information Repository (InfoRepo) details using an Interoperable Object Reference (IOR) and failing to do so.
Here's a list of possible causes and steps to resolve this issue:
Possible Causes
- Incorrect IOR String: The IOR string might be incorrectly specified or malformed.
- Network Issues: Network problems might prevent the application from communicating with the repository.
- InfoRepo Server Not Running: The InfoRepo server might not be running or might have crashed.
- Firewall or Security Settings: Firewalls or security settings might be blocking the communication.
- Configuration Issues: Incorrect DDS configuration in your application.
Steps to Resolve
-
Check the IOR String:
- Ensure that the IOR string provided to your application is correct.
- Verify the syntax and ensure there are no typing mistakes or alterations.
-
Network Connectivity:
- Ensure that the machine running the application can physically connect to the machine hosting the InfoRepo.
- Check for any network issues, such as down interfaces or incorrect routing.
-
Server Status:
- Confirm that the InfoRepo server is running.
- Restart the InfoRepo server if necessary.
- Check the logs of the InfoRepo server for any errors or warnings that might provide additional insight.
-
Firewall and Security:
- Make sure that the ports used by your DDS application and InfoRepo are open and not blocked by a firewall.
- Verify security policies and settings that might impede communication.
-
Configuration:
- Double-check your DDS setup and ensure that all necessary configurations are properly specified in your application.
- Validate configuration files for any errors.
-
Log and Debug:
- Enable additional logging for your DDS application to get more detailed information.
- Look into detailed debug logs to determine precisely why the resolution is failing.
Example of Checking Basic Setup
Here's an example of how you might start an InfoRepo and set up your application in OpenDDS:
-
Starting the InfoRepo:
$ $DDS_ROOT/bin/DCPSInfoRepo -o repo.ior
This command starts the InfoRepo and outputs the IOR string to a file named repo.ior.
-
Configuring your Application:
By following these steps and checking these aspects, you'd be better positioned to diagnose and resolve the "failed to resolve ior" error in your DDS application.