Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.18.0
-
None
-
Unknown
Description
2022-08-03 02:57:31.059 WARN 1 — [Camel (ValuemationCustomerMailboxApplication) thread #7 - imaps://outlook.office365.com:993] o.a.camel.component.mail.MailConsumer : Error opening mail folder due to GSI5 BAD User is authenticated but not connected.. Will re-create connection on next poll
This leads to disconnect(). disconnect sets folder to null, which leads to NullPointerExceptions afterwards:
2022-08-03 02:57:31.073 ERROR 1 — [Camel (ValuemationCustomerMailboxApplication) thread #7 - imaps://outlook.office365.com:993] o.a.c.p.e.DefaultErrorHandler : Failed delivery for (MessageId: 61974526595AC2A-0000000000000006 on ExchangeId: 61974526595AC2A-0000000000000006). Exhausted after delivery attempt: 0 caught: null
Message History (source location and message history is disabled)---------------------------------------------------------------------------------------------------------------------------------------Source ID Processor Elapsed (ms) Custom:XXX. from[imaps://outlook.office365.com:993?bridgeError 3 ... Escalation Route/setHeader1 setHeader[EscalationSender] 0
Stacktrace---------------------------------------------------------------------------------------------------------------------------------------
java.lang.NullPointerException: null at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:162) ~[camel-mail-3.18.0.jar!/:3.18.0] at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:202) ~[camel-support-3.18.0.jar!/:3.18.0] at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:116) ~[camel-support-3.18.0.jar!/:3.18.0] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-08-03 02:57:31.074 ERROR 1 — [Camel (ValuemationCustomerMailboxApplication) thread #7 - imaps://outlook.office365.com:993] o.a.c.p.FatalFallbackErrorHandler : Exception occurred while trying to handle previously thrown exception on exchangeId: 61974526595AC2A-0000000000000006 using: [null].
2022-08-03 02:57:31.081 ERROR 1 — [Camel (ValuemationCustomerMailboxApplication) thread #7 - imaps://outlook.office365.com:993] o.a.c.p.e.DefaultErrorHandler : Failed delivery for (MessageId: 61974526595AC2A-0000000000000007 on ExchangeId: 61974526595AC2A-0000000000000007). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException. Processed by failure processor: FatalFallbackErrorHandler[null]
Message History (source location and message history is disabled)---------------------------------------------------------------------------------------------------------------------------------------Source ID Processor Elapsed (ms) Custom:TTITSupport@forstinger. from[imaps://outlook.office365.com:993?bridgeError 3
Stacktrace---------------------------------------------------------------------------------------------------------------------------------------
java.lang.NullPointerException: null at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:189) ~[camel-mail-3.18.0.jar!/:3.18.0] at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:202) ~[camel-support-3.18.0.jar!/:3.18.0] at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:116) ~[camel-support-3.18.0.jar!/:3.18.0] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]