Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice.DNSException
ashfaqframewala
in Help Center
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
Can you please let me know what is the resolution for this exception?
Thanks,
Ashfaq
0
Comments
-
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.0
