org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

Oracle Community | alecaste | 8 years ago
  1. 0

    Error when sending email from a web application that runs on GlassFish

    Oracle Community | 8 years ago | alecaste
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
  2. 0

    Sending mail using java (Java API forum at Coderanch)

    coderanch.com | 3 months ago
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext). Failed messages: : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext); message exception details (1) are: Failed message 1: : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
  3. 0

    Sending mail using java (Java API forum at Coderanch)

    coderanch.com | 7 months ago
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext). Failed messages: : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext); message exception details (1) are: Failed message 1: : Could not convert socket to TLS; nested exception is: : : Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to locate provider for protocol: smtp

    Stack Overflow | 4 years ago | Nimchip
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp. Failed messages: javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp
  6. 0

    Failed messages: javax.mail.MessagingException: can't determine local email address

    Stack Overflow | 11 months ago | KENDRA SMITH
    org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: can't determine local email address

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.mail.MailSendException

      Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

      at org.apache.catalina.core.ApplicationFilterChain.servletService()
    2. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      6. org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:883)
      7. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:732)
      8. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:554)
      9. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:485)
      10. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:377)
      11. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      12. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      13. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      14. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      14 frames
    3. org.jsecurity.web
      OncePerRequestFilter.doFilter
      1. org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
      2. org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
      2 frames
    4. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      3. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      4. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      5. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
      6. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
      7. org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
      8. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
      9. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
      10. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
      11. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
      11 frames
    5. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      2 frames
    6. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
      6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
      8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
      10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
      11. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
      12. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
      12 frames
    7. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
      1 frame
    8. Grizzly WS
      DefaultProtocolFilter.execute
      1. com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
      2. com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
      3. com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
      4 frames
    9. Kernel Classes
      GlassfishProtocolChain.executeProtocolFilter
      1. com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
      1 frame
    10. Grizzly WS
      WorkerThreadImpl.run
      1. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
      2. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
      3. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      4. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
      5. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
      6. com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
      7. com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
      7 frames