git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange results w/ Bindy (header, list, footer)


Hello!



I am using Camel-Bindy 2.22.0 and was trying to marshal a CSV file with following format:





HeaderColumn:headerColumn:headerColumn

BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn

BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn

FooterColumn;FooterColumn

[etc]



where "Body" can be one or two lines.



I created a CsvEntryHeader, CsvEntryFooter, CsvEntryBody file and a CsvPackage which shall hold them all together.

But I am getting strange results as soon as I add a CsvEntryBody.

Most likely because all of them have different count of columns (I guess).



I expect it to be:



HEADER;agency1;00.01;1

BODY

FOOTER;agency1;;1



but it actually is



HEADER;agency1;00.01;1

BODY;agency1;;1

FOOTER;agency1;00.01;1



Test-Case: 



 https://github.com/c9pr3/bindy-bug-test



Any help appreciated!






( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03520.html on line 139
Call Stack
#TimeMemoryFunctionLocation
10.0007363064{main}( ).../msg03520.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03520.html on line 139
Call Stack
#TimeMemoryFunctionLocation
10.0007363064{main}( ).../msg03520.html:0