[ 
https://issues.apache.org/jira/browse/CAMEL-6602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729058#comment-13729058
 ] 

Ming ZI commented on CAMEL-6602:
--------------------------------

About the test case:
I compared PAYLOAD with POJO. Both tests failed when the "synchronous" property 
set to "false". That's another problem I found. 
With "synchronous=true", POJO test passed but PAYLOAD test stuck.
A ClassCastException was thrown at line 869 in CxfEndpoint.java .
Detail:
 javax.xml.transform.dom.DOMSource cannot be cast to 
org.apache.camel.component.cxf.CxfPayload
                
> camel-cxf ClassCastException when use cxf FailoverFeature
> ---------------------------------------------------------
>
>                 Key: CAMEL-6602
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6602
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.9.7
>            Reporter: Ming ZI
>         Attachments: test.zip
>
>
> With PAYLOAD data format used, the first element in argument is casted to a 
> CxfPayload instance and the argument is changed into a List<DOMSource> 
> instance by the method "setParameters" in class 
> org.apache.camel.component.cxf.CxfEndpoint.
> Then FailoverFeature calls retry, the class-cast action throws a 
> ClassCastException.
> btw: "message.remove(DataFormat.class)" at the end of the method 
> "setParameters" dosn't work. The method "remove" is inherited from Map, and a 
> new message with data format PAYLOAD is created when retry.

--
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: http://www.atlassian.com/software/jira

Reply via email to