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

Marshalling list of POJOs to a fixed length format

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment