Menu

connect Xindice

Help
Anonymous
2003-03-17
2003-03-20
  • Anonymous

    Anonymous - 2003-03-17

    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?

     
    • Chris Morley

      Chris Morley - 2003-03-17

      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

       
    • Anonymous

      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.

       
    • Chris Morley

      Chris Morley - 2003-03-20

      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

       

Log in to post a comment.