Results 1 to 4 of 4

Thread: Ice.DNSException

  1. #1
    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

  2. #2
    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,196
    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.

  3. #3
    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

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    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).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IceE on Blackfin: DNSException in Ice::initialize
    By aronnax in forum Help Center
    Replies: 7
    Last Post: 07-28-2009, 05:28 AM
  2. Resolved: DNSException on FreeBSD
    By grembo in forum Help Center
    Replies: 0
    Last Post: 04-22-2009, 03:11 AM
  3. Ice.DNSException
    By zaoliu in forum Help Center
    Replies: 1
    Last Post: 03-07-2008, 09:43 PM
  4. about connect with private net,Get DNSException err
    By richard in forum Help Center
    Replies: 2
    Last Post: 10-23-2006, 01:47 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
  •