Получение следующего исключения при чтении писем через Apache верблюд.
javax.mail.MessagingException: * BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:738)
at javax.mail.Service.connect(Service.java:366)
at org.apache.camel.component.mail.MailConsumer.ensureIsConnected(MailConsumer.java:520)
at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:94)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Код верблюда выглядит следующим образом
from("imaps://" + emailUserName + "@" + emailHost + ":" + emailPort
+ "?password=" + emailPassword
+ "&delete=true"
+ "&consumer.delay=" + delay
+ "&mail.imap.ssl.trust=" + emailHost
+ "&disconnect=false&closeFolder=false")