Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSendMail Issue

Although it could succeed with the same connection( without any change in setting) sometimes, I get this error every few mins once in talend Cloud data management platform. 

 

 

Exception in component tSendMail_2 (J_Sample)
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at data_etl.j_sample_0_1.j_sample.tSendMail_2Process(j_sample.java:6359)
at data_etl.j_sample_0_1.j_sample.tFileInputRegex_3Process(j_sample.java:5935)
at data_etl.j_sample_0_1.j_sample.runJobInTOS(j_sample.java:6690)
at data_etl.j_sample_0_1.j_sample.main(j_sample.java:6501)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)

 

What could be the reason? and how to resolve this?

Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hello,

What's your email server? G mail or office 365? Is your network OK with you? We will appreciate it if you could post your tSendMail component setting screenshot here.

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi,

 

   The job execution engine (in your case, I assume its remote engine) is trying to connect to the SMTP server to trigger the mail. While trying to connect, you are getting the error below.

 

javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset

 

This could be because there are might be some network or firewall policies which might be stopping the connectivity. Please refer the details in below post. Once you setup proper connectivity between two servers, it should ideally work fine.

 

https://stackoverflow.com/questions/36496893/java-net-socketexception-while-sending-mail-through-jav...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved