Highlighted
Absent Member.
Absent Member.
888 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.
0 Likes
6 Replies
Fleet Admiral
Fleet Admiral

Where is the app server running that is executing the web service? Can this app server resolve the URL http://qcserver:8080/qcbin?
0 Likes
Highlighted
Absent Member.
Absent Member.

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.
0 Likes
Highlighted
Fleet Admiral
Fleet Admiral

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.
0 Likes
Highlighted
Absent Member.
Absent Member.

This is a clean system where I never opened the QC10. I have tested QC10 in different system.
0 Likes
Highlighted
Absent Member.
Absent Member.

Hi Thomas,

Do you know what are the posibilities to get "Server is not Available" error.

Thanks
0 Likes
Highlighted
Absent Member.
Absent Member.

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.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.