Results 1 to 4 of 4

Thread: no suitable endpoint available for proxy `hello -t'

  1. #1
    zeronumber is offline Registered User
    Name: jack zhang
    Organization: Dawning
    Project: Beijing police station
    Join Date
    Dec 2009
    Posts
    13

    no suitable endpoint available for proxy `hello -t'

    Problems about “no suitable endpoint available for proxy `hello -t'”

    I have 3 computers,one is used as the client(10.0.38.126),one is used as the registry(10.0.38.127),and the other is used as the server(10.0.38.128). And I tested in Ice-3.3.1/cpp/demo/IceGrid/simple.

    In the registry, I modified the file of config.grid,and added the IP of registry as follows:
    Code:
    #
    # The IceGrid locator proxy.
    #
    Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 -h 10.0.38.127
    
    #
    # IceGrid registry configuration.
    #
    IceGrid.Registry.Client.Endpoints=default -p 4061  -h 10.0.38.127
    IceGrid.Registry.Server.Endpoints=default -h 10.0.38.127
    IceGrid.Registry.Internal.Endpoints=default -h 10.0.38.127
    In the server, I modified the file of config.grid ,and added the IP of registry as follows:
    Code:
    #
    # The IceGrid locator proxy.
    #
    Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 -h 10.0.38.127
    and also,In the server, I modified the file of config.grid ,and enabled the node and trace propertiees as follows:
    Code:
    # IceGrid node configuration.
    #
    IceGrid.Node.Name=localhost
    IceGrid.Node.Endpoints=default
    IceGrid.Node.Data=db/node
    IceGrid.Node.CollocateRegistry=1
    IceGrid.Node.Output=db
    IceGrid.Node.RedirectErrToOut=1
    
    #
    # Trace properties.
    #
    IceGrid.Node.Trace.Activator=1
    IceGrid.Node.Trace.Adapter=2
    IceGrid.Node.Trace.Server=3
    Then, I run the demo:
    1. in the registry, I run:
    Code:
    icegridregistry --Ice.Config=config.grid
    2. in the server, I run:
    Code:
    icegridnode --Ice.Config=config.grid
    a few seconds later, there are some warnings appeared in the screen of the server:
    Code:
    linux2:~/Ice-3.3.1/cpp/demo/IceGrid/simple # icegridnode --Ice.Config=config.grid
    01/28/10 05:57:58.191 icegridnode: warning: couldn't reach the IceGrid registry (this is expected if it's down, otherwise please check the value of the Ice.Default.Locator property):
    ConnectionI.cpp:1308: Ice::ConnectTimeoutException:
    timeout while establishing a connection
    3. in the registry, I run:
    Code:
    icegridadmin --Ice.Config=config.grid
    Ice 3.3.1  Copyright 2003-2009 ZeroC, Inc.
    >>> application add "application.xml"
    >>> node list
    localhost
    >>> node ping 'localhost'
    node is up
    and then, there are some information appeared in the screen of the server :
    Code:
    icegridnode --Ice.Config=config.grid
    01/28/10 05:57:58.191 icegridnode: warning: couldn't reach the IceGrid registry (this is expected if it's down, otherwise please check the value of the Ice.Default.Locator property):
    ConnectionI.cpp:1308: Ice::ConnectTimeoutException:
    timeout while establishing a connection
    [ 01/28/10 05:58:45.245 icegridnode: Server: changed server `SimpleServer' state to `Loading' ]
    [ 01/28/10 05:58:45.247 icegridnode: Server: changed server `SimpleServer' state to `Inactive' ]
    4. in the client, I run:
    Code:
    ./clent
    errors appeared:
    Code:
    ./client: Reference.cpp:1546: Ice::NoEndpointException:
    no suitable endpoint available for proxy `hello -t'
    What can I do to solve the problems?
    Last edited by zeronumber; 01-28-2010 at 12:29 AM.

  2. #2
    zeronumber is offline Registered User
    Name: jack zhang
    Organization: Dawning
    Project: Beijing police station
    Join Date
    Dec 2009
    Posts
    13
    update~
    when i didn't modified the config.client in the client, the errors appeared as follows after the command "./client" :
    Code:
    linux:~/Ice-3.3.1/cpp/demo/IceGrid/simple # ./client 
    ./client: Network.cpp:1221: Ice::ConnectionRefusedException:
    connection refused: Connection refused
    when i modified the config.client, adding the ip of the registry in the client like this:
    Code:
    #
    # The IceGrid locator proxy.
    #
    Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 -h 10.0.38.127
    #Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061
    the errors appeared as follows after the command "./client" :
    Code:
    linux:~/Ice-3.3.1/cpp/demo/IceGrid/simple # ./client 
    ./client: Reference.cpp:1546: Ice::NoEndpointException:
    no suitable endpoint available for proxy `hello -t'
    How to correctly run client?

  3. #3
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    Hi,

    Which OS do you use?

    The client and icegridnode appear to have issues to connect to the IceGrid registry client endpoint. You can try enabling network tracing with --Ice.Trace.Network=2 to make sure they connect to the expected endpoints. You can also try to connect to the registry endpoints from the machines running the icegridnode or client using telnet to see if it works, for example:

    Code:
      $ telnet 10.0.38.127 4061
    If you're using Windows, you should check if the Windows firewall is enabled and disable it to see it helps.

    Cheers,
    Benoit.

  4. #4
    zeronumber is offline Registered User
    Name: jack zhang
    Organization: Dawning
    Project: Beijing police station
    Join Date
    Dec 2009
    Posts
    13
    Quote Originally Posted by benoit View Post
    Hi,

    Which OS do you use?

    The client and icegridnode appear to have issues to connect to the IceGrid registry client endpoint. You can try enabling network tracing with --Ice.Trace.Network=2 to make sure they connect to the expected endpoints. You can also try to connect to the registry endpoints from the machines running the icegridnode or client using telnet to see if it works, for example:

    Code:
      $ telnet 10.0.38.127 4061
    If you're using Windows, you should check if the Windows firewall is enabled and disable it to see it helps.

    Cheers,
    Benoit.
    ICE version:3.3.1
    OS:turbo8(i need to test on this OS, although it is not the suitable platform)
    i have tried the telnet command that you mentioned,and it works well.
    But when i run "./client",the errors appears again.
    Code:
    ./client: Reference.cpp:1546: Ice::NoEndpointException:
    no suitable endpoint available for proxy `hello -t'
    Last edited by zeronumber; 01-29-2010 at 06:04 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Endpoint Specifications
    By steveo06360 in forum Help Center
    Replies: 10
    Last Post: 03-04-2009, 01:29 PM
  2. Endpoint format
    By acbell in forum Help Center
    Replies: 3
    Last Post: 03-03-2009, 05:27 PM
  3. Is Ice suitable for parallel computation?
    By Yunqiao Yin in forum Comments
    Replies: 1
    Last Post: 01-26-2006, 01:44 PM
  4. SSL Proxy Endpoint and -s
    By gsalazar in forum Help Center
    Replies: 11
    Last Post: 06-22-2005, 02:57 PM
  5. Endpoint merge
    By ganzuoni in forum Help Center
    Replies: 1
    Last Post: 06-25-2003, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •