Hello.
I try to connect xindice by using Xmlrpc++,but I cannot connect.
The error message is
>Error in XmlRpcClient::doConnect: Could not connect to server (error 2)
I use...
RedHat Linux 7.3
xindice-1.0
Xindice-XMLRPC 0.6
xmlrpc++ 0.7
Would you teach me if you know the cause?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I can't tell exactly what the problem is from your description. The errno reported in the message (2) is ENOENT which is not supposed to be returned by connect, so I would guess that the gethostbyname call is failing. I should clarify the error messages to indicate which call failed, but in the meantime you can step through the code (XmlRpcSocket::connect) or instrument it with printf to find out where it is failing.
Be sure your server is up and accepting requests before you start the client of course...
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-03-20
Dear Chris
Thank you for answering my question.
I resolve the problem. The cause was that hostname is "http://localhost" in my program (correctly "localhost").
I apologize to for my simple mistake.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No problem. The error message should have indicated that the error was in gethostbyname, that would have made the error easier to find. I'll try to make those messages more useful in the future.
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I try to connect xindice by using Xmlrpc++,but I cannot connect.
The error message is
>Error in XmlRpcClient::doConnect: Could not connect to server (error 2)
I use...
RedHat Linux 7.3
xindice-1.0
Xindice-XMLRPC 0.6
xmlrpc++ 0.7
Would you teach me if you know the cause?
Sorry, I can't tell exactly what the problem is from your description. The errno reported in the message (2) is ENOENT which is not supposed to be returned by connect, so I would guess that the gethostbyname call is failing. I should clarify the error messages to indicate which call failed, but in the meantime you can step through the code (XmlRpcSocket::connect) or instrument it with printf to find out where it is failing.
Be sure your server is up and accepting requests before you start the client of course...
Chris
Dear Chris
Thank you for answering my question.
I resolve the problem. The cause was that hostname is "http://localhost" in my program (correctly "localhost").
I apologize to for my simple mistake.
No problem. The error message should have indicated that the error was in gethostbyname, that would have made the error easier to find. I'll try to make those messages more useful in the future.
Chris