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

Marshalling list of POJOs to a fixed length format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.12.2
    • None
    • camel-bindy
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: