ozlerhakan / poiji

:candy: A library converting XLS and XLSX files to a list of Java objects based on Apache POI
MIT License
466 stars 134 forks source link

Problem converting from excel with version 1.19.1 #70

Closed fermartinez1 closed 5 years ago

fermartinez1 commented 5 years ago

With last versión (1.19.1) when i do: products = Poiji.fromExcel(intputStream, PoijiExcelType.XLS, ProductExcelDTO.class); the return stateman is null but, if the file extension is .XLSX it works fine. If i do the same with the version 1.13 , its works fine with .XLS and .XLSX . The DTO haves @ExcelCell and @ExcelCellName.

ozlerhakan commented 5 years ago

Hi @fermartinez1 , Do you have any error on this?

fermartinez1 commented 5 years ago

No, only the return is NULL.

ozlerhakan commented 5 years ago

I'll look at it, thank you @fermartinez1 .

ozlerhakan commented 5 years ago

Can I have your mock excel file and model @fermartinez1 ?

fermartinez1 commented 5 years ago

atach.zip

Sorry for the delay, i attached the files. If you change file extension to .xlsx it works fine.

ozlerhakan commented 5 years ago

thank you @fermartinez1

fermartinez1 commented 5 years ago

thank you @ozlerhakan

ozlerhakan commented 5 years ago

I added your test case among the tests so you can try 1.19.2 once it's available on the maven central @fermartinez1

ozlerhakan commented 5 years ago

Feel free to add your comments if you have questions for this issue, I close it for now