spring boot - ImapIdleChannelAdapter: error occurred in idle task -




i following exception in spring boot 1.4.3 based application. uses spring integration 4.3.6.

the imap-server ms-exchange.

any idea that's coming from?

aug 22 14:46:42 2017-08-22 14:46:42.631  warn 537 --- [ask-scheduler-1] o.s.i.mail.imapidlechanneladapter        : error occurred in idle task aug 22 14:46:42 javax.mail.folderclosedexception: * bye javamail exception: java.io.ioexception: connection dropped server? aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.handleidle(imapfolder.java:3199) aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.idle(imapfolder.java:3043) aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.idle(imapfolder.java:2995) aug 22 14:46:42 @ org.springframework.integration.mail.imapmailreceiver.waitfornewmessages(imapmailreceiver.java:175) aug 22 14:46:42 @ org.springframework.integration.mail.imapidlechanneladapter$idletask.run(imapidlechanneladapter.java:271) aug 22 14:46:42 @ org.springframework.integration.mail.imapidlechanneladapter$receivingtask.run(imapidlechanneladapter.java:241) aug 22 14:46:42 @ org.springframework.scheduling.support.delegatingerrorhandlingrunnable.run(delegatingerrorhandlingrunnable.java:54) aug 22 14:46:42 @ org.springframework.scheduling.concurrent.reschedulingrunnable.run(reschedulingrunnable.java:81) aug 22 14:46:42 @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) aug 22 14:46:42 @ java.util.concurrent.futuretask.run(futuretask.java:266) aug 22 14:46:42 @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:180) aug 22 14:46:42 @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:293) aug 22 14:46:42 @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) aug 22 14:46:42 @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) aug 22 14:46:42 @ java.lang.thread.run(thread.java:745)  aug 22 14:46:42 2017-08-22 14:46:42.632  warn 537 --- [ask-scheduler-1] o.s.i.mail.imapidlechanneladapter        : failed execute idle task. attempt resubmit in 10000 milliseconds. aug 22 14:46:42 java.lang.illegalstateexception: failure in 'idle' task. resubmit. aug 22 14:46:42 @ org.springframework.integration.mail.imapidlechanneladapter$idletask.run(imapidlechanneladapter.java:290) aug 22 14:46:42 @ org.springframework.integration.mail.imapidlechanneladapter$receivingtask.run(imapidlechanneladapter.java:241) aug 22 14:46:42 @ org.springframework.scheduling.support.delegatingerrorhandlingrunnable.run(delegatingerrorhandlingrunnable.java:54) aug 22 14:46:42 @ org.springframework.scheduling.concurrent.reschedulingrunnable.run(reschedulingrunnable.java:81) aug 22 14:46:42 @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) aug 22 14:46:42 @ java.util.concurrent.futuretask.run(futuretask.java:266) aug 22 14:46:42 @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:180) aug 22 14:46:42 @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:293) aug 22 14:46:42 @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) aug 22 14:46:42 @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) aug 22 14:46:42 @ java.lang.thread.run(thread.java:745) aug 22 14:46:42 caused by: javax.mail.folderclosedexception: * bye javamail exception: java.io.ioexception: connection dropped server? aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.handleidle(imapfolder.java:3199) aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.idle(imapfolder.java:3043) aug 22 14:46:42 @ com.sun.mail.imap.imapfolder.idle(imapfolder.java:2995) aug 22 14:46:42 @ org.springframework.integration.mail.imapmailreceiver.waitfornewmessages(imapmailreceiver.java:175) aug 22 14:46:42 @ org.springframework.integration.mail.imapidlechanneladapter$idletask.run(imapidlechanneladapter.java:271) aug 22 14:46:42 ... 10 common frames omitted 

spring integration configured this:

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd         http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd         http://www.springframework.org/schema/integration/mail http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"     xmlns:int="http://www.springframework.org/schema/integration"     xmlns:int-mail="http://www.springframework.org/schema/integration/mail"     xmlns:util="http://www.springframework.org/schema/util">      <util:properties id="javamailproperties">         <prop key="mail.imap.socketfactory.class">javax.net.ssl.sslsocketfactory</prop>         <prop key="mail.imap.socketfactory.fallback">false</prop>         <prop key="mail.store.protocol">imaps</prop>         <prop key="mail.debug">false</prop>     </util:properties>      <int:channel id="receivechannel" datatype="javax.mail.message" />      <int-mail:imap-idle-channel-adapter         id="customadapter"         store-uri="imaps://user:password@exchangehost/inbox"         channel="receivechannel"         auto-startup="true"         should-delete-messages="true"         should-mark-messages-as-read="true"         java-mail-properties="javamailproperties" />  </beans> 

<prop key="mail.debug">true</prop> 

this there issue while client communicate server, enable mail debug log can check root cause. had similar case, case server can't recognize commands client

imap email channel adapter throw exception "a5 bad invalid command or parameters;"





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -