Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2007
timberwolf timberwolf is offline
Registered User
 
Name: Bailey Wu
Organization: University of Sydney
Project: DGC
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 17
dns exception

hi,

I have this strange problem with ice throwing dns exception.

I have an icestorm server at 192.168.0.176.

on the subscriber side I have:
IceStorm.TopicManager.Proxy = IceStorm/TopicManager:default -p 10000 -h 192.168.0.176

when the subscriber tries to connection I get dns exception, error =0 host = "0.0.0.0"

if I run the publisher with the same config it's fine. Some how the subscriber just doesn't like 192.168.0.176

ideas anyone?
__________________
---------------------------------------------------------------------------
Orca robotics project
http://orca-robotics.sourceforge.net/
---------------------------------------------------------------------------
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
Reply With Quote
  #2 (permalink)  
Old 06-23-2007
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
I suspect your problem has nothing to do with the TopicManager proxy but instead with your subscriber's object adapter. What is the configuration you are using for that adapter. I expect that is does not have a host explicitly specified, meaning Ice will try to listen on all local hosts, and it appears that this lookup is failing. I do not know why this would be failing. What operating system is your subscriber running on? Either way, specifing a host in the subscriber's adapter configuration will most likely solve your problem.
Reply With Quote
  #3 (permalink)  
Old 06-26-2007
timberwolf timberwolf is offline
Registered User
 
Name: Bailey Wu
Organization: University of Sydney
Project: DGC
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 17
Quote:
Originally Posted by dwayne View Post
I suspect your problem has nothing to do with the TopicManager proxy but instead with your subscriber's object adapter. What is the configuration you are using for that adapter. I expect that is does not have a host explicitly specified, meaning Ice will try to listen on all local hosts, and it appears that this lookup is failing. I do not know why this would be failing. What operating system is your subscriber running on? Either way, specifing a host in the subscriber's adapter configuration will most likely solve your problem.
yeah it is something wrong with the adapter, the code stops at the createObjectAdapter call.

my subscriber config file is as follows:

subscriber.radio.Endpoints=tcp:udp
IceStorm.TopicManager.Proxy =IceStorm/TopicManager:default -p 10000 -h 192.168.0.176

and I'm running this on Ubuntu 7.04.

So you mean like if I had: subscriber.radio.Endpoints=tcp:udp -h localhost it would be ok?
__________________
---------------------------------------------------------------------------
Orca robotics project
http://orca-robotics.sourceforge.net/
---------------------------------------------------------------------------
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
Reply With Quote
  #4 (permalink)  
Old 06-26-2007
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: 1,564
Hi,

Which Ice version do you use?

You should try to enable network tracing on your subscriber to check on which network interfaces the object adapter is trying to bind when you don't specify the -h option in the "subscriber.radio.Endpoints" property.

Most likely, the solution to your problem will be to add a "-h" in each endpoint of the "subscriber.radio.Endpoints" property. You should specify the IP address of the network interface from which your server will be reached by IceStorm.

For example:

subscriber.radio.Endpoints=tcp -h 192.168.0.180:udp -h 192.168.0.180
if "192.168.0.180" is the IP address of the network interface on your Ubuntu machine.

Cheers,
Benoit.
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
Have IceUtil::Exception inherit from std::exception? bpolivka Comments 2 12-13-2006 11:52 AM
ICE without DNS Server wgwolf Comments 8 10-18-2005 02:01 PM
can we use dns name as Endpoint's host name? xiehua Help Center 1 02-18-2004 08:34 AM


All times are GMT -4. The time now is 12:39 AM.


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