Tests Failing During Test Suite Execution - Reason: java.net.UnknownHostException
search cancel

Tests Failing During Test Suite Execution - Reason: java.net.UnknownHostException

book

Article ID: 92698

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

When trying to run a Test Suite/Testcase, all the tests are failing with the following exception:

java.rmi.RemoteException: JMS Messaging problem with ServerRequestHandler for tcp://<CoordinatorServer>:2011/Coordinator Could not connect to broker URL: tcp://<CoordinatorServer>:2011?wireFormat.maxInactivityDuration=0.
Reason: java.net.UnknownHostException: <CoordinatorServer>; nested exception is: com.itko.jms.JMSException: Could not connect to broker URL: tcp://<CoordinatorServer>:2011?wireFormat.maxInactivityDuration=0. 
Reason: java.net.UnknownHostException: <CoordinatorServer> 

Environment

All Supported DevTest Releases.

Resolution

Configure the Coordinator and Simulator services to use the server fully qualified domain name should resolve the issue.

Here are the steps to change the Coordinator and Simulator services name in the vmoptions file.
1. In the Coordinator server, go the $DEVTEST_HOME/bin folder. 
2. Open the CoordinatorServer.vmoptions and CoordinatorService.vmoptions files. 
3. Add the following properties to the two files - without the brackets "<" and ">": 
-Dlisa.coordName=tcp://<CoordinatorServerFQDN>:2011/Coordinator 
-Dlisa.registry.url=tcp://<RegistryFQDN>:2010/Registry 
4. Save and close the files. 
5. In the Simulator server, go to $DEVTEST_HOME/bin folder. 
6. Open the Simulator.vmoptions and SimulatorService.vmoptions files. 
7. Add the following properties to the two files - without the brackets "<" and ">": 
-Dlisa.simulatorName=tcp://<SimulatorServerFQDN>:2014/Simulator 
-Dlisa.registry.url=tcp://<RegistryFQDN>:2010/Registry 
8. Save and close the files. 
9. Restart DevTest components. 

These properties can also be applied in the local.properties file. Then it won't be needed in the vmoptions files.
Here are the steps to add these properties to the local.properties:
1. In the Coordinator server, go the $DEVTEST_HOME/ folder.
2. Open the local.properties file and add the properties below:
lisa.coordName=tcp://<CoordinatorServerFQDN>:2011/Coordinator 
3. In the Simulator server, go the $DEVTEST_HOME/ folder.
4. Open the local.properties file and add the properties below:
lisa.simulatorName=tcp://<SimulatorServerFQDN>:2014/Simulator