Hi,

It looks like your route doesn't consume the parameter of the message body from the camel-cxf consumer, and the CXF HolderOutInterceptor complains about it.

You may need to set the response message in the MappingProcessor or add another processor after the wrieTap(INPUT_TAP).

On 8/23/11 1:35 AM, Mick Knutson wrote:
I am trying to modify the cxf example in the camel source to write the
contents of the incoming CXF request object to a file:

     public static final String INPUT_TAP = "seda:tap";
public static final String WRITE_TO_FILE = "direct:writeToFile";
     public static final String PROCESSED_FILE_DIR = "file:target/reports";
public static final String PROCESSED_FILE_NAME = "processed-${in.header."+
SESSION_ID +"}.txt";

         // populate the message queue with some messages
         from(SOAP_ENDPOINT_URI)
             .process(new MappingProcessor(new BookStoreImpl(false)))
             .wireTap(INPUT_TAP)
         ;
         from(WRITE_TO_FILE).routeId("WRITE_TO_FILE")
                 .log("-->WRITE_TO_FILE")
                 .setHeader(Exchange.FILE_NAME,
constant(PROCESSED_FILE_NAME))
                 .to(PROCESSED_FILE_DIR)
         ;
         from(INPUT_TAP).routeId("INPUT_TAP")
                 .log("-->INPUT_TAP")
                 .multicast()
                 .to(WRITE_TO_FILE)
         ;


I keep getting this error:

[                qtp25163668-15] HolderOutInterceptor           ERROR The
message content list of the in message and out message are same, CXF can't
set the holder object into the message content list of the out message.

and no files are written

I have spent the entire day trying to get this simple example to work and
feel I have not made any progress. I really would appreciate some assistance
with this.



---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring&  Agile Consulting
p. (855) BASE-LOGIC: (227-3564-42)
p. (478) BASE-LOGIC (227-3564-42)
f. (855) BASE-LOGIC: (227-3564-42)

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
---



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to