javax.mail.MessagingException: Remote host closed connection during handshake; nested exception is: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

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

via Google Groups by deep shah, 1 year ago
Remote host closed connection during handshake; nested exception is: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
via Google Groups by Carl Rosenberger, 3 months ago
Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
via Stack Overflow by Nuno Marinho
, 5 months ago
Connection timed out: connect; nested exception is: java.net.ConnectException: Connection timed out: connect
via Stack Overflow by rupal
, 4 months ago
A0 BAD Parse Error; nested exception is: com.sun.mail.iap.BadCommandException: A0 BAD Parse Error
via Coderanch by P Chaudhari, 1 year ago
* BYE JavaMail Exception: java.net.SocketException: Socket closed; nested exception is: com.sun.mail.iap.ProtocolException: * BYE JavaMail Exception: java.net.SocketException: Socket closed
via Oracle Community by 721127, 6 months ago
Connection reset; nested exception is: java.net.SocketException: Connection reset
java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:744)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at com.sun.mail.iap.ResponseInputStream.read0(ResponseInputStream.java:81)
at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:67)
at com.sun.mail.iap.Response.(Response.java:83)
at com.sun.mail.imap.protocol.IMAPResponse.(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.(Protocol.java:91)
at com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:87)
at javax.mail.Service.connect(Service.java:275)
at model.XoauthAuthenticator.connectToImap(XoauthAuthenticator.java:92)
at model.XoauthAuthenticator.main(XoauthAuthenticator.java:180)

Users with the same issue

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
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.