UnknownHostException: Java & IPV6 on Linux

In case this helps someone else, I spent a few hours trying to pin down why my GWT app was seeing UnknownHostExceptions for things like google.com when using HttpClient in hosted mode.

Luckily, I found this guy (girl?) in the same boat, who figured out that you just need to flip a system property to get correct behavior – in my case, passing in the VM argument -Djava.net.preferIPv4Stack=true on Tomcat startup.

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>