<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Getting MessagingException Failure from PutEmail Processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-MessagingException-Failure-from-PutEmail-Processor/m-p/329143#M230398</link>
    <description>&lt;P&gt;We resolved this issue by updating the version of java from 8 to 9&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 04:54:51 GMT</pubDate>
    <dc:creator>kamalnagpal</dc:creator>
    <dc:date>2021-10-29T04:54:51Z</dc:date>
    <item>
      <title>Getting MessagingException Failure from PutEmail Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-MessagingException-Failure-from-PutEmail-Processor/m-p/328883#M230358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting failure in PutEmail Processor in our organization's nifi server.The error states that "Could not convert socket to TLS:routing to failure: javax.mail.MessagingException: Could not convert socket to TLS:&lt;BR /&gt;nested exception is:&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I routed the failure relation back to processor and after 30-40(randomly) or more retries it processes successfully.Though trying to figure out why its getting failure in first place.&lt;/P&gt;
&lt;P&gt;Attaching the log here.&lt;/P&gt;
&lt;P&gt;2021-10-25 12:44:36,643 ERROR [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.PutEmail PutEmail[id=bdc0872f-2860-12ce-c193-24605d5b6823] Failed to send email for StandardFlowFileRecord[uuid=844b4761-2a4c-439a-9f3d-5e6f06739c00,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1635165813775-357600, container=default, section=224], offset=3718, length=82370],offset=0,name=SampleFile.csv,size=82370]: Could not convert socket to TLS; routing to failure: javax.mail.MessagingException: Could not convert socket to TLS;&lt;BR /&gt;nested exception is:&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake&lt;BR /&gt;javax.mail.MessagingException: Could not convert socket to TLS&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1907)&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:666)&lt;BR /&gt;at javax.mail.Service.connect(Service.java:317)&lt;BR /&gt;at javax.mail.Service.connect(Service.java:176)&lt;BR /&gt;at javax.mail.Service.connect(Service.java:125)&lt;BR /&gt;at javax.mail.Transport.send0(Transport.java:194)&lt;BR /&gt;at javax.mail.Transport.send(Transport.java:124)&lt;BR /&gt;at org.apache.nifi.processors.standard.PutEmail.send(PutEmail.java:541)&lt;BR /&gt;at org.apache.nifi.processors.standard.PutEmail.onTrigger(PutEmail.java:395)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1174)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1002)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)&lt;BR /&gt;at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:549)&lt;BR /&gt;at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:486)&lt;BR /&gt;at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1902)&lt;BR /&gt;... 20 common frames omitted&lt;BR /&gt;Caused by: java.io.EOFException: SSL peer shut down incorrectly&lt;BR /&gt;at sun.security.ssl.InputRecord.read(InputRecord.java:505)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)&lt;BR /&gt;... 26 common frames omitted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="Old Thread" href="https://community.cloudera.com/t5/Support-Questions/remote-host-closed-connection-during-handshake/m-p/328869" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/remote-host-closed-connection-during-handshake/m-p/328869&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kamal&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 07:46:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-MessagingException-Failure-from-PutEmail-Processor/m-p/328883#M230358</guid>
      <dc:creator>kamalnagpal</dc:creator>
      <dc:date>2021-10-27T07:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting MessagingException Failure from PutEmail Processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-MessagingException-Failure-from-PutEmail-Processor/m-p/329143#M230398</link>
      <description>&lt;P&gt;We resolved this issue by updating the version of java from 8 to 9&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 04:54:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-MessagingException-Failure-from-PutEmail-Processor/m-p/329143#M230398</guid>
      <dc:creator>kamalnagpal</dc:creator>
      <dc:date>2021-10-29T04:54:51Z</dc:date>
    </item>
  </channel>
</rss>

