java.io.IOException: HTTPS hostname wrong: should be <localhost>

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

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Oracle Community by 807553, 1 year ago
HTTPS hostname wrong: should be <localhost>
via Oracle Community by 843811, 1 year ago
HTTPS hostname wrong: should be <localhost>
via Oracle Community by 843811, 1 year ago
HTTPS hostname wrong: should be <1company.mydomain.com>
via Oracle Community by 843811, 1 year ago
HTTPS hostname wrong: should be <wellsfargo.com>
via Google Groups by Albert, 5 months ago
HTTPS hostname wrong: should be <1company.mydomain.com>
via Oracle Community by 843841, 1 year ago
HTTPS hostname wrong: should be <localhost>
java.io.IOException: HTTPS hostname wrong: should be <localhost>
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556)
at undefined.zmrd.main(zmrd.java:23)

Users with the same issue

You are the first who have seen this exception.

Write tip

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