I have set up a simple route from a imap account to a jbi service.
When the smx is now shut down, then the log says the following:
ERROR - DisposableBeanAdapter - Couldn't invoke destroy method of
bean with name 'camel'
java.lang.IllegalStateException: This operation is not allowed on a closed
folder
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:955)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
at
org.apache.camel.component.mail.MailConsumer.doStop(MailConsumer.java:58)
at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:62)
at
org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:110)
at
org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:455)
at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:62)
at
org.apache.camel.spring.CamelContextFactoryBean.destroy(CamelContextFactoryBean.java:121)
It looks like the component tries to close the imap folder two times and
this causes the exception.
Should I raise a JIRA ?
Regards,
Lars
--
View this message in context:
http://www.nabble.com/Error-in-Camel-Mail-Component--tp15502418s12049p15502418.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.