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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Talend 5.4.1 - Mail component issue

Hello everybody,
I have a cMessagingEndpoint with the folowing argument:
"pop3s://email@pop10.hosteam.fr:995?password=...&consumer.delay=30000&folderName=INBOX&searchTerm.subject=RENAULT GEMPORT STOCK REPORT&searchTerm.fromSentDate=now-24h& delete=true&debugMode=false"
The problem is that the mail doesn't delete eventhough delete=true.
The mail is read and he's mark to seen but the route loops on this mail because he's not deleted.
If I execute this route in Talend Open Studio the mail is correctly deleted but if I deploy this route in our runtime container the mail is not deleted and that is the problem.
Could you help me please ?
Thx in advance for your support
Labels (2)
11 Replies
Anonymous
Not applicable
Author

Hi,
Did you see something exceptions in the Runtime/logs/tesb.log ?
Regards
Anonymous
Not applicable
Author

Hi,
I think I have found something.
If I deploy the route by removing the cTalendjob It's working fine. The mail is correctly deleted.
In the documentation they say :"Deletes the messages after they have been processed."
In my opinion the route consider that the message has not been processed thus he's not delete it.
How can we override this behavior ?
Do you have an idea ?
0683p000009MB1c.png
Anonymous
Not applicable
Author

Hi xldai,
In order to debug this issue I activated the argument "debugMode=true".
In the Runtime/logs/tesb.log I have this:
---------------------------------------------------------------------------------------------------------------------------------------
Exchange, from=, to=, to=, to=, to=, to=, to=, to=, to=, to=, to=, to=, to=, to=, subject=, sentDate=, receivedDate=]
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)

]
]


Exchange
-----------


To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

Hi,
from the stacktrace 
at org.apache.camel.component.directvm.DirectVmProducer.process(DirectVmProducer.java:44)
at org.talend.esb.eventlogging.agent.ddvm.DynamicDirectVmProducer.process(DynamicDirectVmProducer.java:29)
@Xilai: could you recheck how Event Logging impact to route?
Anonymous
Not applicable
Author

Hi,
There isn't any impact.
Anonymous
Not applicable
Author

Hi,
I saw the exception in the log
Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V
at mail.gemport_v2_0_1.GEMPORT_v2.tFileInputExcel_2Process(GEMPORT_v2.java:2494)

could you please check if the setLevel() is from generated code, or you set it manually in some of processor?
Anonymous
Not applicable
Author

Hi,
In the code of my job I have that:
logger_tFileInputExcel_2.setLevel(org.apache.log4j.Level.WARN);

I don't have set manually the setlevel in a processor
0683p000009MAk3.png
Anonymous
Not applicable
Author

Hi,
We have a jira issue about tFileInputExcel,https://jira.talendforge.org/browse/TDI-28852, it's fixed in version 5.6 or above.
HTH
Anonymous
Not applicable
Author

Do you think this is because of that exception if the mail doesn't delete ?