This error generally occurs when your operating system supports IPv6 and Java has defaulted to use it instead of IPv4 and manifests the most on *nix distributions for any version of Java, and Windows 7 starting with Java 7.
An example of this problem occurs when running mvn site:run
under Java 7:
...