<?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 tPOP - problem with imap - InputStream blocks in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tPOP-problem-with-imap-InputStream-blocks/m-p/2269284#M47586</link>
    <description>Hello all,&lt;BR /&gt;I use tPOP with imap to get emails from a Domino Server (Lotus notes.. -.-).&lt;BR /&gt;When the job is started, one mail is downloaded but nothing else happens. The Problem is not the&lt;BR /&gt;next Component (tFileInputMail) because the iterate isn't started. It hangs at tPOP.&lt;BR /&gt;After a few tests i started to look at the source code and found out that tPOP hangs on at the following while:&lt;BR /&gt;&lt;PRE&gt;java.io.InputStream in_tPOP_1 = message_tPOP_1.getInputStream();&lt;BR /&gt;byte[] buffer_tPOP_1 = new byte;&lt;BR /&gt;int length_tPOP_1 = 0;&lt;BR /&gt;while ((length_tPOP_1 = in_tPOP_1.read( buffer_tPOP_1, 0, 1024)) != -1) {&lt;BR /&gt;         os_tPOP_1.write(buffer_tPOP_1, 0, length_tPOP_1);&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;I think the Inputstream cannot reach the end to get out of the while. So I replaced the code above with this row:&lt;BR /&gt;&lt;PRE&gt;message_tPOP_1.writeTo(os_tPOP_1);&lt;/PRE&gt;&lt;BR /&gt;Now it works fine and it helps anybody how have the same problem.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Here are my questions:&lt;BR /&gt;1. How can I firmly implement my custom code in the source code of the job? Every time when i change something at the job it overwrites my custom code and i don't know how to use here a routine....&lt;BR /&gt;2. Should i start a new Ticket at the BugReport for this? &lt;/B&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;pentaloc</description>
    <pubDate>Fri, 24 Aug 2012 10:53:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-24T10:53:23Z</dc:date>
    <item>
      <title>tPOP - problem with imap - InputStream blocks</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tPOP-problem-with-imap-InputStream-blocks/m-p/2269284#M47586</link>
      <description>Hello all,&lt;BR /&gt;I use tPOP with imap to get emails from a Domino Server (Lotus notes.. -.-).&lt;BR /&gt;When the job is started, one mail is downloaded but nothing else happens. The Problem is not the&lt;BR /&gt;next Component (tFileInputMail) because the iterate isn't started. It hangs at tPOP.&lt;BR /&gt;After a few tests i started to look at the source code and found out that tPOP hangs on at the following while:&lt;BR /&gt;&lt;PRE&gt;java.io.InputStream in_tPOP_1 = message_tPOP_1.getInputStream();&lt;BR /&gt;byte[] buffer_tPOP_1 = new byte;&lt;BR /&gt;int length_tPOP_1 = 0;&lt;BR /&gt;while ((length_tPOP_1 = in_tPOP_1.read( buffer_tPOP_1, 0, 1024)) != -1) {&lt;BR /&gt;         os_tPOP_1.write(buffer_tPOP_1, 0, length_tPOP_1);&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;I think the Inputstream cannot reach the end to get out of the while. So I replaced the code above with this row:&lt;BR /&gt;&lt;PRE&gt;message_tPOP_1.writeTo(os_tPOP_1);&lt;/PRE&gt;&lt;BR /&gt;Now it works fine and it helps anybody how have the same problem.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Here are my questions:&lt;BR /&gt;1. How can I firmly implement my custom code in the source code of the job? Every time when i change something at the job it overwrites my custom code and i don't know how to use here a routine....&lt;BR /&gt;2. Should i start a new Ticket at the BugReport for this? &lt;/B&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;pentaloc</description>
      <pubDate>Fri, 24 Aug 2012 10:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tPOP-problem-with-imap-InputStream-blocks/m-p/2269284#M47586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-24T10:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: tPOP - problem with imap - InputStream blocks</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tPOP-problem-with-imap-InputStream-blocks/m-p/2269285#M47587</link>
      <description>Hi pentaloc 
&lt;BR /&gt;You can change the java code. plz check below link it will helpfull. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjwCCAS" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Edit-and-modify-a-job-s-source-code/td-p/71037&lt;/A&gt;</description>
      <pubDate>Fri, 24 Aug 2012 13:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tPOP-problem-with-imap-InputStream-blocks/m-p/2269285#M47587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-24T13:53:14Z</dc:date>
    </item>
  </channel>
</rss>

