Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tPOP - problem with imap - InputStream blocks

Hello all,
I use tPOP with imap to get emails from a Domino Server (Lotus notes.. -.-).
When the job is started, one mail is downloaded but nothing else happens. The Problem is not the
next Component (tFileInputMail) because the iterate isn't started. It hangs at tPOP.
After a few tests i started to look at the source code and found out that tPOP hangs on at the following while:
java.io.InputStream in_tPOP_1 = message_tPOP_1.getInputStream();
byte[] buffer_tPOP_1 = new byte;
int length_tPOP_1 = 0;
while ((length_tPOP_1 = in_tPOP_1.read( buffer_tPOP_1, 0, 1024)) != -1) {
os_tPOP_1.write(buffer_tPOP_1, 0, length_tPOP_1);
}

I think the Inputstream cannot reach the end to get out of the while. So I replaced the code above with this row:
message_tPOP_1.writeTo(os_tPOP_1);

Now it works fine and it helps anybody how have the same problem.

Here are my questions:
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....
2. Should i start a new Ticket at the BugReport for this?

Cheers,
pentaloc
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi pentaloc
You can change the java code. plz check below link it will helpfull.
https://community.talend.com/t5/Design-and-Development/Edit-and-modify-a-job-s-source-code/td-p/7103...