camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From contactreji <contactr...@gmail.com>
Subject Re: Polling Email Component - Runtime Error
Date Tue, 18 Mar 2014 16:35:05 GMT
Hi Claus

I upgraded the Camel version as well as the camel-mail to
<version>2.11.1</version>

I set the mapMailMessage=false too. I followed your advice at the link
https://issues.apache.org/jira/browse/CAMEL-6154 by setting
closeFolder=false

Still am stuck up with the error as below

*2014-03-18 22:02:56,406 [ing.Main.main()] INFO  SpringCamelContext            
- Apache Camel 2.11.1 (CamelContext: camel-1) started in 2.275 seconds
2014-03-18 22:03:07,448 [/imap.gmail.com] WARN  MailConsumer                  
- Caused by: [org.apache.camel.RuntimeCamelException - Error populating the
initial mail message attachments]
org.apache.camel.RuntimeCamelException: Error populating the initial mail
message attachments
	at
org.apache.camel.component.mail.MailMessage.populateInitialAttachments(MailMessage.java:124)
	at
org.apache.camel.impl.DefaultMessage.createAttachments(DefaultMessage.java:209)
	at
org.apache.camel.impl.DefaultMessage.getAttachments(DefaultMessage.java:274)
	at org.apache.camel.component.mail.MailMessage.copy(MailMessage.java:62)
	at org.apache.camel.component.mail.MailMessage.copy(MailMessage.java:33)
	at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:91)
	at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:71)
	at
org.apache.camel.processor.UnitOfWorkProcessor.createUnitOfWork(UnitOfWorkProcessor.java:190)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)
	at
org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
	at
org.apache.camel.component.mail.MailConsumer.processExchange(MailConsumer.java:255)
	at
org.apache.camel.component.mail.MailConsumer.processBatch(MailConsumer.java:199)
	at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:118)
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
	at javax.mail.internet.ParameterList.set(ParameterList.java:165)
	at
com.sun.mail.imap.protocol.BODYSTRUCTURE.parseParameters(BODYSTRUCTURE.java:404)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:224)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:109)
	at com.sun.mail.imap.protocol.BODYSTRUCTURE.<init>(BODYSTRUCTURE.java:109)
	at
com.sun.mail.imap.protocol.FetchResponse.parseItem(FetchResponse.java:198)
	at com.sun.mail.imap.protocol.FetchResponse.parse(FetchResponse.java:164)
	at com.sun.mail.imap.protocol.FetchResponse.<init>(FetchResponse.java:92)
	at
com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:288)
	at com.sun.mail.iap.Protocol.command(Protocol.java:313)
	at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1543)
	at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:1535)
	at
com.sun.mail.imap.protocol.IMAPProtocol.fetchBodyStructure(IMAPProtocol.java:1235)
	at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1294)
	at com.sun.mail.imap.IMAPMessage.getDataHandler(IMAPMessage.java:639)
	at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927)
	at
org.apache.camel.component.mail.MailBinding.extractAttachmentsFromMail(MailBinding.java:291)
	at
org.apache.camel.component.mail.MailMessage.populateInitialAttachments(MailMessage.java:121)
	... 28 more
2014-03-18 22:03:22,932 [/imap.gmail.com] WARN  MailConsumer                  
- Caused by: [org.apache.camel.RuntimeCamelException - Error populating the
initial mail message attachments]
org.apache.camel.RuntimeCamelException: Error populating the initial mail
message attachments
	at
org.apache.camel.component.mail.MailMessage.populateInitialAttachments(MailMessage.java:124)
	at
org.apache.camel.impl.DefaultMessage.createAttachments(DefaultMessage.java:209)
	at
org.apache.camel.impl.DefaultMessage.getAttachments(DefaultMessage.java:274)
	at org.apache.camel.component.mail.MailMessage.copy(MailMessage.java:62)
	at org.apache.camel.component.mail.MailMessage.copy(MailMessage.java:33)
	at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:91)
	at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:71)
	at
org.apache.camel.processor.UnitOfWorkProcessor.createUnitOfWork(UnitOfWorkProcessor.java:190)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)
	at
org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
	at
org.apache.camel.component.mail.MailConsumer.processExchange(MailConsumer.java:255)
	at
org.apache.camel.component.mail.MailConsumer.processBatch(MailConsumer.java:199)
	at org.apache.camel.component.mail.MailConsumer.poll(MailConsumer.java:118)
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)*



--
View this message in context: http://camel.465427.n5.nabble.com/Polling-Email-Component-Runtime-Error-tp5749047p5749059.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message