We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

IndexOutOfBoundsException occurs while generating HTML output of excel table


I am using aspose.cells v17.4.0 to generate HTML of table - 'Table1' in the attached excel file. Following exception is thrown when saving the workbook in HTML format:

java.lang.IndexOutOfBoundsException: Index: 12, Size: 12
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.aspose.cells.DxfCollection.get(Unknown Source)
at com.aspose.cells.ListObjectImp.B(Unknown Source)
at com.aspose.cells.ListObjectImp$za.a(Unknown Source)
at com.aspose.cells.ListObjectImp$za.(Unknown Source)
at com.aspose.cells.ListObjectImp.w(Unknown Source)
at com.aspose.cells.ListObjectCollection.a(Unknown Source)
at com.aspose.cells.zafp.b(Unknown Source)
at com.aspose.cells.zafl.a(Unknown Source)
at com.aspose.cells.zafq.a(Unknown Source)
at com.aspose.cells.zbyr.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)

Can you please analyse this issue.



Thanks for providing us template file, sample code and details.

After an initial test, I observed the issue as you mentioned by using your sample code with your template file. I found an exception: “java.lang.IndexOutOfBoundsException: Index: 12, Size: 12” when saving to HTML file format. I have logged a ticket with an id “CELLSJAVA-42278” for your issue. We will look into it soon.

Once we have an update on it, we will let you know here.

Thank you.

Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSJAVA-42278 now. We will soon provide the fix after performing QA and including other enhancements and fixes.


Thanks for using Aspose.Cells.

Please download and try the following latest fix: Aspose.Cells for Java v17.4.6 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-42278) have been fixed in Aspose.Cells for Java 17.5.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.