java.lang.IllegalArgumentException: Host name may not contain blanks

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Apache's JIRA Issue Tracker by Sebastiano Vigna, 1 year ago
Host name may not contain blanks
via Apache's JIRA Issue Tracker by Sebastiano Vigna, 1 year ago
Host name may not contain blanks
via GitHub by KingFaris10
, 1 year ago
Host name may not be null
via Sonatype JIRA by Rich Seddon, 10 months ago
Host name may not contain blanks
java.lang.IllegalArgumentException: Host name may not contain blanks
at org.apache.http.util.Args.containsNoBlanks(Args.java:84)
at org.apache.http.HttpHost.(HttpHost.java:80)
at org.apache.http.client.utils.URIUtils.extractHost(URIUtils.java:370)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:133)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:73)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
at it.unimi.di.law.bubing.util.FetchData.fetch(FetchData.java:322)
at it.unimi.di.law.bubing.frontier.FetchingThread.run(FetchingThread.java:267)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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