You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Wang Yan <wy...@gmail.com> on 2018/09/27 18:35:23 UTC

got content is not allowed when unmarshal with BindyFixedLengthDataFormat

My Pojo is complex, consisting of other Pojos

i create BindyFixedLengthDataFormat  instance like below

when i unmarshal with BindyFixedLengthDataFormat for
fix length file i got error --- content is not allowed in prolog.
Any hints are more than welcome!

BindyFixedLengthDataFormat bindy = new
BindyFixedLengthDataFormat(com.mypackage.Order.class);

@FixedLengthRecord

public class Order {

    @Link Header header;

    @Link Trailer trailer;

......

}