Thread: Glacier problem
View Single Post
  #1 (permalink)  
Old 10-25-2004
fengxb's Avatar
fengxb fengxb is offline
Registered User
 
Name: feng xuebin
Organization: jiexin tech
Project: scientific calculation
 
Join Date: Aug 2003
Location: R.P.China
Posts: 78
Glacier problem

Hi,

I have a big trouble when I attempt to develop the distributed application with Glacier. The physical firewall dedicates a port 9004 for the server. So the server got a public address with one port 9004. The other ports are mapped to others machines. There are multiple clients need to request the server and receive callbacks from the server. I try to run the demo, StarterC and StarterS, but failed. The config of GlacierStarter is followed:

Glacier.Starter.CryptPasswords=hellopasswords
Glacier.Starter.Endpoints=tcp -p 9004 -t 30000
Glacier.Starter.PropertiesOverride=Ice.ServerIdleT ime=10
Glacier.Router.Endpoints=tcp -h 211.92.163.36 -p 9004
Glacier.Router.Client.Endpoints=tcp -h 192.168.0.1
Glacier.Router.Server.Endpoints=tcp -h 211.92.163.36

The output of client is followed:
creating and activating callback receiver adapter... ok
creating and adding callback receiver object... ok
testing stringToProxy for glacier starter... ok
testing checked cast for glacier starter... ok
starting up glacier router... client: Glacier::CannotStartRouterException:
timeout while starting `C:\Program Files\demo\glaci
errouter.exe'

The output of GlacierStarter is followed:
[ glacierstarter: Network: attempting to bind to tcp socket 192.168.0.1:9004 ]
[ glacierstarter: Network: accepting tcp connections at 192.168.0.1:9004 ]
[ glacierstarter: Network: accepted tcp connection
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: sent 14 of 14 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: received 14 of 14 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: received 56 of 56 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: sent 26 of 26 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: received 14 of 14 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: received 54 of 54 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: attempting to bind to tcp socket 192.168.0.1:0 ]
[ glacierstarter: Network: accepting tcp connections at 192.168.0.1:3423 ]
[ glacierstarter: Network: attempting to bind to tcp socket 211.92.163.36:0 ]
C:\Program Files\demo\glacierrouter.exe: D:\jiexin_
project\Ice-1.5.1\src\Ice\Network.cpp:377: Ice::SocketException:
socket exception: WSAEADDRNOTAVAIL
[ glacierstarter: Network: stopping to accept tcp connections at 192.168.0.1:342
3 ]
glacierstarter: error: Glacier::CannotStartRouterException
[ glacierstarter: Network: sent 162 of 162 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: received 14 of 14 bytes via tcp
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]
[ glacierstarter: Network: closing tcp connection
local address = 192.168.0.1:9004
remote address = 61.144.193.12:65169 ]

How should I configure it?

Regards,
__________________
Fengxb
Reply With Quote