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

camel-cxf - getting TypeConversionException when schema-validation-enabled=true for unwrapped response

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.1
    • Fix Version/s: 2.18.5, 2.19.4, 2.20.0
    • Component/s: camel-cxf
    • Labels:
    • Environment:

      Windows 7

    • Estimated Complexity:
      Unknown

      Description

      When "schema-validation-enabled" is set to true for unwrapped web service, TypeConversionException is return

      org.apache.camel.TypeConversionException: Error during type conversion from type: java.lang.String to the required type: java.lang.String with value [Body is instance of org.apache.camel.StreamCache] due java.lang.IllegalStateException: StAXSource(XMLStreamReader) with XMLStreamReadernot in XMLStreamConstants.START_DOCUMENT or XMLStreamConstants.START_ELEMENT state

        Attachments

        1. empty-cxf-body.zip
          9 kB
          Chio Chuan Ooi

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                chiochuan Chio Chuan Ooi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: