camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7157) Marshalling list of POJOs to a fixed length format
Date Fri, 31 Jan 2014 12:02:11 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikhail updated CAMEL-7157:
---------------------------

    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.


  was:
Hello guys!
I faced an issue while trying to marshal 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.



> 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
>         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<String,
Object> 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)

Mime
View raw message