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 Oracle Community by alecaste, 1 year ago
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.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(ApplicationFilterChain.java:431)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:883)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:732)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:554)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:485)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:377)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)	at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)	at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)	at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)	at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)	at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)	at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)	at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)	at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)	at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)	at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)