got content is not allowed when unmarshal with BindyFixedLengthDataFormat

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

got content is not allowed when unmarshal with BindyFixedLengthDataFormat

nono
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;

......

}