<?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: Error in tmailsend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312869#M83777</link>
    <description>hello 
&lt;BR /&gt;I have the exact same error while using tSendMail in TOS 3.0.2 
&lt;BR /&gt;the same component is working fine on TOS 2.3.3 with same arguments 
&lt;BR /&gt;isn't there a bug with this tSendmail component in TOS 3.0.2 ? 
&lt;BR /&gt;Starting job Prepa_GASPAR at 11:11 28/05/2009. 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tSendMail_2Process(Prepa_GASPAR.java:2217) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tMSSqlInput_1Process(Prepa_GASPAR.java:1987) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tFileCopy_1Process(Prepa_GASPAR.java:372) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.runJobInTOS(Prepa_GASPAR.java:3085) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.main(Prepa_GASPAR.java:2974) 
&lt;BR /&gt;Job Prepa_GASPAR ended at 11:11 28/05/2009. 
&lt;BR /&gt;code is : 
&lt;BR /&gt; start 
&lt;BR /&gt; */ 
&lt;BR /&gt; 
&lt;BR /&gt;currentComponent="tSendMail_2"; 
&lt;BR /&gt; 
&lt;BR /&gt; String message_tSendMail_2 = (("Hello")==null || "".equals("Hello"))?"\"\"" 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;"Hello") ; 
&lt;BR /&gt; java.util.Properties props_tSendMail_2 = System.getProperties(); 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.host", smtpHost_tSendMail_2); 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.port", smtpPort_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.auth", "false"); 
&lt;BR /&gt; javax.mail.Session session_tSendMail_2 = javax.mail.Session.getInstance(props_tSendMail_2, null); 
&lt;BR /&gt; javax.mail.Message msg_tSendMail_2 = new javax.mail.internet.MimeMessage(session_tSendMail_2); 
&lt;BR /&gt; msg_tSendMail_2.setFrom(new javax.mail.internet.InternetAddress(from_tSendMail_2)); 
&lt;BR /&gt; msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.TO,javax.mail.internet.InternetAddress.parse(to_tSendMail_2, false)); 
&lt;BR /&gt; if(cc_tSendMail_2!=null) msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.CC, javax.mail.internet.InternetAddress.parse(cc_tSendMail_2, false)); 
&lt;BR /&gt; if(bcc_tSendMail_2!=null) msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.BCC, javax.mail.internet.InternetAddress.parse(bcc_tSendMail_2, false)); 
&lt;BR /&gt; 
&lt;BR /&gt; msg_tSendMail_2.setSubject(subject_tSendMail_2); 
&lt;BR /&gt; for (int i_tSendMail_2 = 0; i_tSendMail_2 &amp;lt; headers_tSendMail_2.size(); i_tSendMail_2++) { 
&lt;BR /&gt; java.util.Map&amp;lt;String, String&amp;gt; header_tSendMail_2 = headers_tSendMail_2.get(i_tSendMail_2); 
&lt;BR /&gt; msg_tSendMail_2.setHeader(header_tSendMail_2.get("KEY"), header_tSendMail_2.get("VALUE")); 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt; msg_tSendMail_2.setSentDate(new Date()); 
&lt;BR /&gt; javax.mail.Multipart mp_tSendMail_2 = new javax.mail.internet.MimeMultipart(); 
&lt;BR /&gt; javax.mail.internet.MimeBodyPart mbpText_tSendMail_2 = new javax.mail.internet.MimeBodyPart(); 
&lt;BR /&gt; mbpText_tSendMail_2.setText(message_tSendMail_2); 
&lt;BR /&gt; mp_tSendMail_2.addBodyPart(mbpText_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; for(int i_tSendMail_2 = 0; i_tSendMail_2 &amp;lt; attachments_tSendMail_2.size(); i_tSendMail_2++) 
&lt;BR /&gt; { 
&lt;BR /&gt; String filename_tSendMail_2 = attachments_tSendMail_2.get(i_tSendMail_2); 
&lt;BR /&gt; javax.mail.internet.MimeBodyPart mbpFile_tSendMail_2 = new javax.mail.internet.MimeBodyPart(); 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; javax.activation.FileDataSource fds_tSendMail_2 = new javax.activation.FileDataSource(filename_tSendMail_2 ); 
&lt;BR /&gt; mbpFile_tSendMail_2.setDataHandler(new javax.activation.DataHandler(fds_tSendMail_2)); 
&lt;BR /&gt; mbpFile_tSendMail_2.setFileName(fds_tSendMail_2.getName()); 
&lt;BR /&gt; mp_tSendMail_2.addBodyPart(mbpFile_tSendMail_2); 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt; // -- set the content -- 
&lt;BR /&gt; msg_tSendMail_2.setContent(mp_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; // -- Send the message -- 
&lt;BR /&gt; javax.mail.Transport.send(msg_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt;/** 
&lt;BR /&gt; * stop</description>
    <pubDate>Thu, 28 May 2009 10:11:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-28T10:11:49Z</dc:date>
    <item>
      <title>Error in tmailsend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312867#M83775</link>
      <description>Dears, 
&lt;BR /&gt; I am getting this below error when i use component tsendmail in my job, without this component my job is running successfully. Can anyone help me in this regard. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Ram 
&lt;BR /&gt;Error: 
&lt;BR /&gt; 
&lt;BR /&gt;Starting job J_REP_EN at 14:05 20/03/2009. 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "Support", invalid AssignmentOperator 
&lt;BR /&gt; at intel_support_sites.j_rep_en_0_1.J_REP_EN.tOracleInput_4Process(J_REP_EN.java:6149) 
&lt;BR /&gt; at intel_support_sites.j_rep_en_0_1.J_REP_EN.runJobInTOS(J_REP_EN.java:11122) 
&lt;BR /&gt; at intel_support_sites.j_rep_en_0_1.J_REP_EN.main(J_REP_EN.java:10953) 
&lt;BR /&gt;Job J_REP_EN ended at 14:05 20/03/2009.</description>
      <pubDate>Sat, 16 Nov 2024 14:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312867#M83775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tmailsend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312868#M83776</link>
      <description>Hello Ram 
&lt;BR /&gt;There is a compilation error in code, go to the 'Code' tab and you will see what's the error. 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 20 Mar 2009 09:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312868#M83776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-20T09:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tmailsend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312869#M83777</link>
      <description>hello 
&lt;BR /&gt;I have the exact same error while using tSendMail in TOS 3.0.2 
&lt;BR /&gt;the same component is working fine on TOS 2.3.3 with same arguments 
&lt;BR /&gt;isn't there a bug with this tSendmail component in TOS 3.0.2 ? 
&lt;BR /&gt;Starting job Prepa_GASPAR at 11:11 28/05/2009. 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tSendMail_2Process(Prepa_GASPAR.java:2217) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tMSSqlInput_1Process(Prepa_GASPAR.java:1987) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.tFileCopy_1Process(Prepa_GASPAR.java:372) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.runJobInTOS(Prepa_GASPAR.java:3085) 
&lt;BR /&gt; at edifice_gaspar.prepa_gaspar_0_1.Prepa_GASPAR.main(Prepa_GASPAR.java:2974) 
&lt;BR /&gt;Job Prepa_GASPAR ended at 11:11 28/05/2009. 
&lt;BR /&gt;code is : 
&lt;BR /&gt; start 
&lt;BR /&gt; */ 
&lt;BR /&gt; 
&lt;BR /&gt;currentComponent="tSendMail_2"; 
&lt;BR /&gt; 
&lt;BR /&gt; String message_tSendMail_2 = (("Hello")==null || "".equals("Hello"))?"\"\"" 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;"Hello") ; 
&lt;BR /&gt; java.util.Properties props_tSendMail_2 = System.getProperties(); 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.host", smtpHost_tSendMail_2); 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.port", smtpPort_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; props_tSendMail_2.put("mail.smtp.auth", "false"); 
&lt;BR /&gt; javax.mail.Session session_tSendMail_2 = javax.mail.Session.getInstance(props_tSendMail_2, null); 
&lt;BR /&gt; javax.mail.Message msg_tSendMail_2 = new javax.mail.internet.MimeMessage(session_tSendMail_2); 
&lt;BR /&gt; msg_tSendMail_2.setFrom(new javax.mail.internet.InternetAddress(from_tSendMail_2)); 
&lt;BR /&gt; msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.TO,javax.mail.internet.InternetAddress.parse(to_tSendMail_2, false)); 
&lt;BR /&gt; if(cc_tSendMail_2!=null) msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.CC, javax.mail.internet.InternetAddress.parse(cc_tSendMail_2, false)); 
&lt;BR /&gt; if(bcc_tSendMail_2!=null) msg_tSendMail_2.setRecipients(javax.mail.Message.RecipientType.BCC, javax.mail.internet.InternetAddress.parse(bcc_tSendMail_2, false)); 
&lt;BR /&gt; 
&lt;BR /&gt; msg_tSendMail_2.setSubject(subject_tSendMail_2); 
&lt;BR /&gt; for (int i_tSendMail_2 = 0; i_tSendMail_2 &amp;lt; headers_tSendMail_2.size(); i_tSendMail_2++) { 
&lt;BR /&gt; java.util.Map&amp;lt;String, String&amp;gt; header_tSendMail_2 = headers_tSendMail_2.get(i_tSendMail_2); 
&lt;BR /&gt; msg_tSendMail_2.setHeader(header_tSendMail_2.get("KEY"), header_tSendMail_2.get("VALUE")); 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt; msg_tSendMail_2.setSentDate(new Date()); 
&lt;BR /&gt; javax.mail.Multipart mp_tSendMail_2 = new javax.mail.internet.MimeMultipart(); 
&lt;BR /&gt; javax.mail.internet.MimeBodyPart mbpText_tSendMail_2 = new javax.mail.internet.MimeBodyPart(); 
&lt;BR /&gt; mbpText_tSendMail_2.setText(message_tSendMail_2); 
&lt;BR /&gt; mp_tSendMail_2.addBodyPart(mbpText_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; for(int i_tSendMail_2 = 0; i_tSendMail_2 &amp;lt; attachments_tSendMail_2.size(); i_tSendMail_2++) 
&lt;BR /&gt; { 
&lt;BR /&gt; String filename_tSendMail_2 = attachments_tSendMail_2.get(i_tSendMail_2); 
&lt;BR /&gt; javax.mail.internet.MimeBodyPart mbpFile_tSendMail_2 = new javax.mail.internet.MimeBodyPart(); 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; javax.activation.FileDataSource fds_tSendMail_2 = new javax.activation.FileDataSource(filename_tSendMail_2 ); 
&lt;BR /&gt; mbpFile_tSendMail_2.setDataHandler(new javax.activation.DataHandler(fds_tSendMail_2)); 
&lt;BR /&gt; mbpFile_tSendMail_2.setFileName(fds_tSendMail_2.getName()); 
&lt;BR /&gt; mp_tSendMail_2.addBodyPart(mbpFile_tSendMail_2); 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt; // -- set the content -- 
&lt;BR /&gt; msg_tSendMail_2.setContent(mp_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt; // -- Send the message -- 
&lt;BR /&gt; javax.mail.Transport.send(msg_tSendMail_2); 
&lt;BR /&gt; 
&lt;BR /&gt;/** 
&lt;BR /&gt; * stop</description>
      <pubDate>Thu, 28 May 2009 10:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312869#M83777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-28T10:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tmailsend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312870#M83778</link>
      <description>dcopp,&lt;BR /&gt;I'm fairly confident that it's related to the message part of the component - you have made an error in the Java code :&lt;BR /&gt;(("Hello")==null || "".equals("Hello")&lt;B&gt;)?"\"\""sad"Hello")&lt;BR /&gt;Possibly the 3rd closing bracket I've highlighted.  If not, please post a screenshot.&lt;BR /&gt;Cheers,&lt;BR /&gt;c0utta&lt;/B&gt;</description>
      <pubDate>Fri, 29 May 2009 04:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312870#M83778</guid>
      <dc:creator>c0utta</dc:creator>
      <dc:date>2009-05-29T04:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error in tmailsend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312871#M83779</link>
      <description>I had the same error. We must put quotation marks even if the string is empty. (Example for Bcc "").</description>
      <pubDate>Wed, 03 Jun 2009 15:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-in-tmailsend/m-p/2312871#M83779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-03T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

