@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
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
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
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,
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:
>
>
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,