java.lang.IllegalArgumentException: Invalid characters in hostname

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

,
Expert tip

This bug happens from SDK 8 b117 to SDK 8 b122, try updating to 122 or further to fix it.

Solutions on the web

java.lang.IllegalArgumentException: Invalid characters in hostname
at java.net.HostPortrange.toLowerCase(HostPortrange.java:189)
at java.net.HostPortrange.(HostPortrange.java:150)
at java.net.URLPermission$Authority.(URLPermission.java:476)
at java.net.URLPermission.parseURI(URLPermission.java:446)
at java.net.URLPermission.init(URLPermission.java:167)
at java.net.URLPermission.(URLPermission.java:163)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months 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
8 more bugmates

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