Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-27-2010
zeronumber 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-27-2010 at 11:29 PM.
Reply With Quote
  #2 (permalink)  
Old 01-28-2010
zeronumber 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?
Reply With Quote
  #3 (permalink)  
Old 01-28-2010
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 2,013
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.
Reply With Quote
  #4 (permalink)  
Old 01-29-2010
zeronumber 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 05:04 AM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Endpoint Specifications steveo06360 Help Center 10 03-04-2009 12:29 PM
Endpoint format acbell Help Center 3 03-03-2009 04:27 PM
Is Ice suitable for parallel computation? Yunqiao Yin Comments 1 01-26-2006 12:44 PM
SSL Proxy Endpoint and -s gsalazar Help Center 11 06-22-2005 01:57 PM
Endpoint merge ganzuoni Help Center 1 06-25-2003 08:52 AM


All times are GMT -4. The time now is 12:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2010 ZeroC, Inc.