Question

8
Replies
3659
Views
JohnPaulRaja,C Member since 2011 244 posts
Cognizant
Posted: 2 years ago
Last activity: 11 months 1 week ago
Solved

javax.mail.MessagingException: Could not convert socket to TLS;

Hi,

System generates sporadically error when send email through scheduler.

Log

ERROR - Unexpected exception caught while trying to send an email message with sender ID of XXXXXXXXXXX

javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2046)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:711)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at com.pegarules.generated.SendEmailMessage_071025_BlRMk6UdYGJBle4Q9qA_kg.SendEmailMessage07_10_25(SendEmailMessage_071025_BlRMk6UdYGJBle4Q9qA_kg.java:362)
at com.pegarules.generated.SendEmailMessage_071025_BlRMk6UdYGJBle4Q9qA_kg.invoke(SendEmailMessage_071025_BlRMk6UdYGJBle4Q9qA_kg.java:90)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:221)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:119)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:9073)
at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflectionWithException(LibrarySupport.java:275)
at java.lang.invoke.DirectHandle.invokeExact_thunkArchetype_L(DirectHandle.java:235)
at java.lang.invoke.BruteArgumentMoverHandle.invokeExact_thunkArchetype_X(ArgumentMoverHandle.java:390)
at java.lang.invoke.CollectHandle.invokeExact_thunkArchetype_X(CollectHandle.java:99)
at java.lang.invoke.FilterReturnHandle.invokeExact_thunkArchetype_X(FilterReturnHandle.java:42)
at java.lang.invoke.AsTypeHandle.invokeExact_thunkArchetype_X(AsTypeHandle.java:34)
at com.pegarules.generated.activity.ra_action_sendemailnotification_71749bf75123085c922415ea17ed816b$$dtt.dt_62_step6_circum0_357(Unknown Source)
at com.pegarules.generated.activity.ra_action_sendemailnotification_71749bf75123085c922415ea17ed816b.step6_circum0(ra_action_sendemailnotification_71749bf75123085c922415ea17ed816b.java)

Data Integration
Share this page LinkedIn