java.io.IOException

HTTPS hostname wrong: should be <localhost>

Samebug tips1

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.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web770

  • via Unknown by 807553,
  • via Unknown by 843811,
  • Stack trace

    • 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 sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275) at zmrd.main(zmrd.java:23)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    tfrtfr
    35 times, last one
    davidvanlaatumdavidvanlaatum
    Once,
    Unknown visitor
    Unknown visitorOnce,
    28 more bugmates