com.sun.mail.iap.ProtocolException: STARTTLS failure

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

com.sun.mail.iap.ProtocolException: STARTTLS failure
at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:132)
at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56)
at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)
at java.security.KeyStore.getKey(KeyStore.java:1023)
at sun.security.ssl.SunX509KeyManagerImpl.(SunX509KeyManagerImpl.java:133)
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)
at sun.security.ssl.SSLContextImpl$DefaultSSLContext.getDefaultKeyManager(SSLContextImpl.java:874)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.security.Provider$Service.newInstance(Provider.java:1595)
at java.security.Provider$Service.newInstance(Provider.java:1617)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:518)
at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:248)
at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:523)
at com.sun.mail.iap.Protocol.startTLS(Protocol.java:444)
at com.sun.mail.imap.protocol.IMAPProtocol.startTLS(IMAPProtocol.java:929)
at com.sun.mail.imap.protocol.IMAPProtocol.startTLS(IMAPProtocol.java:943)
at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:766)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:703)
at javax.mail.Service.connect(Service.java:364)
at com.sunopsis.dwg.tools.ReadMail.getConnected(ReadMail.java:937)
at com.sunopsis.dwg.tools.ReadMail.actionExecute(ReadMail.java:243)

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
2 times, 1 year ago
10 more bugmates

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