Some thoughts: Instead of using your HeaderSetterProcessor, you could do: from("...") ... .setHeader(CxfConstants.OPERATION_NAMESPACE, constant(" http://invoker.ps.eos.fairisaac.com")) .setHeader(CxfConstants.OPERATION_NAME, constant("processRequest")) .convertBodyTo(YourPayload.class) ...
what is more expressive. However, in your HeaderSetterProcessor on line 42, you do List<?> list = exchng.getContext().getTypeConverter().convertTo(List.class, it); which is the root cause for this exception: ERROR \--> Previous exception on exchangeId: ID-vsedykh-nb-50709-1377338945967-0-2 org.apache.camel.TypeConversionException: Error during type conversion from type: java.util.Scanner to the required type: java.util.List It doesn't really fit into the route you shared... Best, Christian ----------------- Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://www.linkedin.com/pub/christian-mueller/11/551/642 On Mon, Aug 26, 2013 at 1:13 PM, Valery <valery.sed...@gmail.com> wrote: > I found round way: I replaced camel cxf component call by direct CXF usage > in > processor. now it works fine. But i will participate in this case and will > help you (as posible) to understand and fix it. > > Thanks, > Valery > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-throws-StackOverflowException-while-converting-message-body-tp5737854p5737955.html > Sent from the Camel - Users mailing list archive at Nabble.com. >