camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rene Avontuur (JIRA)" <>
Subject [jira] [Updated] (CAMEL-6440) loss of data on xpath after cxf (payload-mode)
Date Mon, 09 Sep 2013 09:09:53 GMT


Rene Avontuur updated CAMEL-6440:


The observed data loss is most likely due to the inability of Camel's DomConverter/XmlConverter
to handle linked lists of text nodes correctly. See latest version of the added unit tests
for more details.
> loss of data on xpath after cxf (payload-mode) 
> -----------------------------------------------
>                 Key: CAMEL-6440
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.11.0, 2.12.0
>            Reporter: Rene Avontuur
>            Assignee: Claus Ibsen
>         Attachments:,
> Applying an xpath expression to a message containing a CxfPayload may lead to loss of
> A unit test to demonstrate this, has been written.
> A work around is converting the CxfPayload to a String, followed by applying xpath to
the String.
> The unit test fails on current snapshot-version:
> testMessageWithIncreasingSize(org.apache.camel.component.cxf.CxfConsumerPayloadXPathTest)
 Time elapsed: 1.357 sec  <<< FAILURE!
> java.lang.AssertionError: Lengths of testMessage and receiveMessage should be equal (body
is CxfPayload), expected:<10000> but was:<3805>
> 	at
> 	at org.junit.Assert.failNotEquals(
> 	at org.junit.Assert.assertEquals(
> 	at org.junit.Assert.assertEquals(
> 	at org.apache.camel.component.cxf.CxfConsumerPayloadXPathTest.execTest(
> 	at org.apache.camel.component.cxf.CxfConsumerPayloadXPathTest.testMessageWithIncreasingSize(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message