My job works fine with a route which used a dozerMapper get from getBean of
spring context.

I have try with a simple convertbody :

from("file://C:/Temp/camel/rep1/?noop=true")
.split().tokenize("\n")
.streaming()
.unmarshal()

.bindy(BindyType.Csv, Ticket.class)

.convertBodyTo(TicketOUT.class)

...
.to("log://after1")
.marshal()
.bindy(BindyType.Csv, TicketOUT.class)
.to("log://after2")
.recipientList(simple("stream:file?fileName=C:/Temp/camel/rep1/out/yop.csv"))
.end()
.log("fin")
.end()
;

But It throw the
org.apache.camel.InvalidPayloadException: No body available of type:
bean.ticketOut.TicketOUT but has value: bean.ticket.Ticket@547fa706 of
type: bean.ticket.Ticket on: null. Caused by: No type converter available
to convert from type: bean.ticket.Ticket to the required type:
bean.ticketOut.TicketOUT with value
bean.ticket.Ticket@547fa706.Exchange[null]. Caused by:
[org.apache.camel.NoTypeConversionAvailableException - No type converter
available to convert from type: bean.ticket.Ticket to the required type:
bean.ticketOut.TicketOUT with value bean.ticket.Ticket@547fa706]


Do I have to configure something else ?

thanks !

Jeff


2013/5/8 jeff <jflebesc...@gmail.com>

> Oh ! Great !
>
> Thanks
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/From-bind-to-bind-tp5732109p5732195.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to