Hi

In Camel 2.13 you can set context.setAllowUseOriginalMessage(false)
which could help with this problem.

For older releases it seems a defensive copy of the mail is done as
part of UoW and there is a failure in the attachments of the mail
message, from the NPE in java mail.

You can try upgrading java mail to latest you can download from
http://www.oracle.com/technetwork/java/javamail/index.html

For Camel 2.12.x and older we would need a fix in camel-mail to detect
the mapMailMessage=false and dont do the attachments extraction as
part of the UoW.

Fell free to log a ticket about that, then I can see if I can get this
fixed tomorrow.



On Tue, Mar 18, 2014 at 5:54 PM, contactreji <contactr...@gmail.com> wrote:
> Hi Claus
>
> I am getting a new set of errors in log now.. There seems to be something
> different here. This happended when I had set mapMailMessage=false
> Have any idea whats the fix from this point onwards?
>
> *
> 2014-03-18 22:22:11,966 [/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.U*
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Polling-Email-Component-Runtime-Error-tp5749047p5749060.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to