Srinivas Alapat

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
15:14
898 views
OTA InitConnectionEx method throwing error: Java/COM Bridge: Server is not available
Hi,
I am using this below method to connect the QC 9.2 server.
public void connect(){
TDConnection connection = new TDConnection();
connection.InitConnectionEx("http://qcserver:8080/qcbin");
connection.Login(user, password);
connection.Connect(domain, project);
}
Let say this method is existed in ABC.java file
If I run the ABC.class file like a java application it is creating the connection properly.
But If call this method(ABC.connect()) from webservice it is throwing
Java/COM Bridge: Server is not available
at com.bsd.otaclient.ICommandJNI.Execute(Native Method)
at com.bsd.otaclient.ICommandProxy.Execute(ICommandProxy.java:59)
Can someone please help me to fix this.
I am using this below method to connect the QC 9.2 server.
public void connect(){
TDConnection connection = new TDConnection();
connection.InitConnectionEx("http://qcserver:8080/qcbin");
connection.Login(user, password);
connection.Connect(domain, project);
}
Let say this method is existed in ABC.java file
If I run the ABC.class file like a java application it is creating the connection properly.
But If call this method(ABC.connect()) from webservice it is throwing
Java/COM Bridge: Server is not available
at com.bsd.otaclient.ICommandJNI.Execute(Native Method)
at com.bsd.otaclient.ICommandProxy.Execute(ICommandProxy.java:59)
Can someone please help me to fix this.
6 Replies
Thomas Köppner

Fleet Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
15:21
Where is the app server running that is executing the web service? Can this app server resolve the URL http://qcserver:8080/qcbin?
Srinivas Alapat

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
15:26
I can able to open http://qcserver:8080/qcbin URL thru the browser where the webservice is running. Java application also running fine in the same system.
I have executed this code with QC10 successfully using webservices. But I am getting problem with QC 9.2.
I have executed this code with QC10 successfully using webservices. But I am getting problem with QC 9.2.
Thomas Köppner

Fleet Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
15:30
QC 9.2 and 10.0 cannot be used on the same machine the same time, even not the clients and OTA API. You will have to re-run the QC client setup. This installs the OTA API, but either the 9.2 API or the 10.0 API. You cannot have both on one machine.
Srinivas Alapat

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
15:33
This is a clean system where I never opened the QC10. I have tested QC10 in different system.
Srinivas Alapat

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
16:24
Hi Thomas,
Do you know what are the posibilities to get "Server is not Available" error.
Thanks
Do you know what are the posibilities to get "Server is not Available" error.
Thanks
Srinivas Alapat

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-10-09
16:56
I have tested the same code on my clients QC server. To run this connection code, it took almost 5mins of time and I got the timeoutexception while login. Here it passes the InitConnectionEx("qcserver") but took it almost 2-3mins to move to the next statement.
But if I open the link thru browser it will take just few seconds to login.
But if I open the link thru browser it will take just few seconds to login.