Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B30431035A for ; Thu, 6 Feb 2014 09:56:16 +0000 (UTC) Received: (qmail 25084 invoked by uid 500); 6 Feb 2014 09:56:16 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 24987 invoked by uid 500); 6 Feb 2014 09:56:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 24899 invoked by uid 99); 6 Feb 2014 09:56:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 09:56:11 +0000 Date: Thu, 6 Feb 2014 09:56:11 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-7157) Marshalling list of POJOs to a fixed length format MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-7157. -------------------------------- Resolution: Invalid > Marshalling list of POJOs to a fixed length format > -------------------------------------------------- > > Key: CAMEL-7157 > URL: https://issues.apache.org/jira/browse/CAMEL-7157 > Project: Camel > Issue Type: Bug > Components: camel-bindy > Affects Versions: 2.12.2 > Reporter: Mikhail Pryakhin > Attachments: bindy.7z > > > 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 but > they are really not and as a result java.lang.ClassCastException exception is thrown. > Please see attached junit tests. -- This message was sent by Atlassian JIRA (v6.1.5#6160)