camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ming ZI (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6602) camel-cxf ClassCastException when use cxf FailoverFeature
Date Fri, 02 Aug 2013 07:17:52 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ming ZI updated CAMEL-6602:
---------------------------

    Description: 
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.


  was:
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" don't work.
The method "remove" is inherited from Map, and a new message whit data format PAYLOAD is created
when retry.


    
> 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
>
> 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

Mime
View raw message