It's all about the answers!

Ask a question

Creating connection with Rhapsody Design manager through Java API


Naveen Tyagi (19710132) | asked Jul 24 '15, 2:59 a.m.
edited Jul 27 '15, 6:15 a.m.
After setting up the DM SDK  environnement [https://jazz.net/wiki/bin/view/Main/Dm5Sdk_ExternalFileExample]

Following the same code example from the link( https://jazz.net/wiki/bin/view/Main/Dm5Sdk_CommonTasks#CreateConnection )

try{
	
	DmClient client = new DmClient("test", "test", "https://example.com:9443/dm");
	
	String apiVersion = client.getApiVersion();
	
	System.out.println( "DM API Version: " + apiVersion);
	
} catch( DmClientException ce ) {
	
	System.out.println( "DM Client Exception: " + ce.getMessage());

}		
 i have added all the required DM jar files in the path. After running code DmClient [ DmClient client = new DmClient("test", "test", "https://example.com:9443/dm"] object is getting created but then  "Connection Timeout" Exception occurs. Can anybody tell me what went wrong ? your help would greatly appreciated. :)

Comments
Francois-xavier Panaget commented Jul 28 '15, 4:26 a.m.

Hi,

According to the thread: rhapsody design manager 6.0 : Hostname in certificate didn't match, you seem to have passed that problem since you get certificate problems now.  Can you confirm?
Thanks
François

One answer



permanent link
Donald Nong (14.4k213) | answered Jul 28 '15, 1:11 a.m.
You're supposed to change "https://example.com:9443/dm" to match your actual environment. Have you done so? You can verify the URL in your browser.
If the URL is correct and you still have the timeout error, you will need to provide more details about your environment.

Your answer


Register or to post your answer.