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

Marshalling list of POJOs to a fixed length format

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.12.2
    • Fix Version/s: None
    • Component/s: camel-bindy
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hello guys!
      I faced an issue while trying to marshal a list of annotated POJOs to an OutPutStream using org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat .

      The cause of the issue is that if the processing body is of type java.util.List, then
      the BindyFixedLengthDataFormat expects the elements of the list to be of type Map<String, Object> but
      they are really not and as a result java.lang.ClassCastException exception is thrown.

      Please see attached junit tests.

        Attachments

        1. bindy.7z
          2 kB
          Mikhail Pryakhin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              m.pryahin Mikhail Pryakhin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: