ArrayIndexOutOfBoundException when reading the workbook

Hello,

When i am creating the workbook from the input stream wiht the below code snippet :

Workbook book = new Workbook(bis, loadOptions);

I get ArrayIndexOutOfBoundsException. I have attached the file which has the problem.

Could you please help me on this ?

Thanks,

Asha

Hi Asha,

Thanks for your posting and using Aspose.Cells.

Please download and use the latest version: Aspose.Cells
for Java v8.2.0.3
. It works fine and does not throw exception while loading your file.

We have tested this issue with the following code and did not encounter any problem and it successfully generated the pdf. I have also attached the output pdf generated by it for your reference.

Java


String filePath = “F:\Shak-Data-RW\Downloads\SampleFile.xlsx”;


Workbook workbook = new Workbook(filePath);

workbook.save(filePath + “.out.pdf”);


Hello,

Thanks for the reply. Due to security issues on my side i done have access to download the jar. Could you please attach the jar in a mail and send it to me or provide a link which has the zipped jar?

Thanks,

Asha

Hi,


You may get the latest version/fix: Aspose.Cells for Java v8.2.0.3 from the link:
https://www.dropbox.com/s/6z6p03amq39i4be/aspose-cells-8.2.0.3-java.zip?dl=0

Thank you.