Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-12-2007
ashfaqframewala ashfaqframewala is offline
Registered User
 
Name: Ashfaq Framewala
Organization: Merrill Lynch
Project: TASS
 
Join Date: Jun 2007
Posts: 3
Ice.DNSException

I get an exception Ice.DNSException while running the sample Java client code on Linux machine. The host name which is not resolved is "127.0.0.1" which is the localhost. I checked the /etc/hosts file does have an entry for "127.0.0.1".

Can you please let me know what is the resolution for this exception?

Thanks,
Ashfaq
Reply With Quote
  #2 (permalink)  
Old 06-12-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
Hello Ashfaq and welcome to the forums!

Could you tell us a bit more about your environment? Which Java, IceJ and Linux version do you use? Could you post the complete stack trace of the Ice.DNSException? Did you also try to print the proxy from which the exception is raised to double-check its endpoints?

I can't think of any possible reasons for this Ice.DNSException when trying to resolve 127.0.0.1. There's only two cases where it's raised: if the hostname can't be resolved (here it's an IP address so no resolution should be necessary) or if no IPv4 addresses are available for the hostname (again this shouldn't be an issue for 127.0.0.1).

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 06-13-2007
ashfaqframewala ashfaqframewala is offline
Registered User
 
Name: Ashfaq Framewala
Organization: Merrill Lynch
Project: TASS
 
Join Date: Jun 2007
Posts: 3
Thanks for your reply Benoit.

I was able to resolve this issue. I was using GNU libgcj for running the client and hence got this error. Once I ran it using jdk1.4.2 standard edition, the problem was solved

I feel though that the exception is misleading.

Regards,
Ashfaq
Reply With Quote
  #4 (permalink)  
Old 06-13-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
What do you feel is misleading?

There is no possible way that DNSException should be ever raised when trying to resolve 127.0.0.1. This being raised is quite indicative of some very fundamentally broken things with your platform (as you discovered).
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
about connect with private net,Get DNSException err richard Help Center 2 10-23-2006 02:47 AM


All times are GMT -4. The time now is 12:13 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.