<?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>topic Re: Email csv file from local machine using cMail component throws Null Pointer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199317#M2291</link>
    <description>Hi Nikhil Thampi,&lt;BR /&gt;&lt;BR /&gt;I am getting the path and file name but not able to receive email with attachment.</description>
    <pubDate>Wed, 27 Feb 2019 15:57:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-27T15:57:26Z</dc:date>
    <item>
      <title>Email csv file from local machine using cMail component throws Null Pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199315#M2289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to send the CSV&amp;nbsp;file from my local machine via email using cMail component. The code in my cProcessor&amp;nbsp;is below is :&lt;/P&gt;&lt;PRE&gt;import java.io.File;

String path = "C:\\Users\\Talend\\Downloads\\Report_20190226.csv";
exchange.getIn().addAttachment(path.substring(path.lastIndexOf("\\")+1), new javax.activation.DataHandler(new javax.activation.FileDataSource(path)));
exchange.getIn().setBody("Hello");
System.out.println(path);&lt;/PRE&gt;&lt;P&gt;but it gives the following exception:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;java.lang.NullPointerException&lt;/PRE&gt;&lt;P&gt;Please help me where my exchange is getting null.&lt;BR /&gt;The flow is shown in the image attached.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199315#M2289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Email csv file from local machine using cMail component throws Null Pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199316#M2290</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Before doing the processing, could you please print and verify whether the file names are parsed in the right way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please assign the data to a variable and print the steps like last index parse. It should give you a clue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 03:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199316#M2290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T03:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Email csv file from local machine using cMail component throws Null Pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199317#M2291</link>
      <description>Hi Nikhil Thampi,&lt;BR /&gt;&lt;BR /&gt;I am getting the path and file name but not able to receive email with attachment.</description>
      <pubDate>Wed, 27 Feb 2019 15:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199317#M2291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-27T15:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Email csv file from local machine using cMail component throws Null Pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199318#M2292</link>
      <description>&lt;P&gt;Hi Ameen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please provide the component screenshots also for the problematic components?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;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 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199318#M2292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Email csv file from local machine using cMail component throws Null Pointer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199319#M2293</link>
      <description>Hi Nikhil,
&lt;BR /&gt;
&lt;BR /&gt;I have already attached the image in my first post. Please look at that.
&lt;BR /&gt;One more thing it is from Talend 5.3</description>
      <pubDate>Thu, 28 Feb 2019 15:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Email-csv-file-from-local-machine-using-cMail-component-throws/m-p/2199319#M2293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T15:24:08Z</dc:date>
    </item>
  </channel>
</rss>

