Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6602

camel-cxf ClassCastException when use cxf FailoverFeature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.7
    • 2.10.7, 2.11.2, 2.12.0
    • camel-cxf
    • None
    • Unknown

    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.

      Attachments

        1. test.zip
          5 kB
          Ming ZI

        Activity

          People

            njiang Willem Jiang
            avina Ming ZI
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: