java.net.UnknownHostException: foo

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.net.UnknownHostException: foo
at java.net.InetAddress.getAllByName0(InetAddress.java:571)
at java.net.InetAddress.getAllByName0(InetAddress.java:540)
at java.net.InetAddress.getByName(InetAddress.java:449)
at java.net.Socket.(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:335)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
at sun.net.www.http.HttpClient.(HttpClient.java:271)
at sun.net.www.http.HttpClient.(HttpClient.java:281)
at sun.net.www.http.HttpClient.New(HttpClient.java:293)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:404)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:497)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
at undefined.HttpTest.main(HttpTest.java:29)

Users with the same issue

Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
2137 times, 1 day ago
44 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.