AW: Error sending email from Camel application

2018-01-05 Thread christian.jacob
@camel.apache.org Betreff: Re: Error sending email from Camel application The route is taking properties from a POJO and building up a message to use to send an email. I add the from, to & subject headers in the route which are just string values. The message body is created using a Velo

Re: Error sending email from Camel application

2018-01-05 Thread Charles Berger
Looks like I've managed to fix this, with some help from this post on StackOverflow: https://stackoverflow.com/questions/33397359/how-to-configure-jackson-objectmapper-for-camel-in-spring-boot What I did is to create a new ObjectMapper instance and disabled the

Re: Error sending email from Camel application

2018-01-05 Thread Charles Berger
The route is taking properties from a POJO and building up a message to use to send an email. I add the from, to & subject headers in the route which are just string values. The message body is created using a Velocity template which extracts some values from the POJO. I included some tracers

Re: Error sending email from Camel application

2018-01-05 Thread Claus Ibsen
Hi >From the stacktrace it seems its some kind of header that is causing this jackson conversion as its .toString method is called. What objects do you store in the headers? Maybe use tracer, or debug your Camel application and see which header has the problem. On Thu, Jan 4, 2018 at 8:01 PM,

Re: Error sending email from Camel application

2018-01-04 Thread Charles Berger
Anyone able to help with this please? On Thu, Dec 21, 2017 at 6:03 PM, Charles Berger wrote: > Hi, > > I have the following route in my application which sends an email > based on a template filled out with data from the SingleImageModel > class: > >

Error sending email from Camel application

2017-12-21 Thread Charles Berger
Hi, I have the following route in my application which sends an email based on a template filled out with data from the SingleImageModel class: from(ACTIVEMQ_EMAIL_QUEUE) .routeId(ROUTE_EMAIL_NOTIFICATIONS) .convertBodyTo(SingleImageModel.class) // set subject,