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

Free Support Forum - aspose.com

Workbook object creation fails for excel document


I am using Aspose.Cells v17.4.0. Workbook object creation fails for the attached excel file.

Following exception occurs while creating workbook object:

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:646)
at com.aspose.cells.zakg.c(Unknown Source)
at com.aspose.cells.zakg.s(Unknown Source)
at com.aspose.cells.zakg.b(Unknown Source)
at com.aspose.cells.zakg.e(Unknown Source)
at com.aspose.cells.zakg.j(Unknown Source)
at com.aspose.cells.zakg.c(Unknown Source)
at com.aspose.cells.zakg.b(Unknown Source)
at com.aspose.cells.zakt.a(Unknown Source)
at com.aspose.cells.zakt.b(Unknown Source)
at com.aspose.cells.zakt.a(Unknown Source)
at com.aspose.cells.zalr.a(Unknown Source)
at com.aspose.cells.zalr.b(Unknown Source)
at com.aspose.cells.zalr.w(Unknown Source)
at com.aspose.cells.zalr.d(Unknown Source)
at com.aspose.cells.zalq.a(Unknown Source)
at com.aspose.cells.zbyr.a(Unknown Source)
at com.aspose.cells.zbyr.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
at com.quark.qpp.filter.service.aspose.manager.impl.ExcelManager.getWorkbook(ExcelManager.java:268)
at com.quark.qpp.filter.service.aspose.manager.impl.ExcelManager.getDetails(ExcelManager.java:82)
at com.quark.qpp.filter.service.aspose.AsposeFilterImpl.populateFileAttributes(AsposeFilterImpl.java:613)
at com.quark.qpp.filter.service.aspose.AsposeFilterImpl.generateAttributes(AsposeFilterImpl.java:231)
at com.quark.qpp.core.indexing.service.impl.IndexingThread.execute(IndexingThread.java:303)
at com.quark.qpp.core.indexing.service.impl.IndexingThread.run(IndexingThread.java:195)

Can you please analyse this issue.



Thanks for the template file and stack trace.

After an initial test, I am able to observe the issue as you mentioned by using the following line of code with your template file. I found an exception: “java.lang.StringIndexOutOfBoundsException: String index out of range: 0” when instantiating the Workbook object with respect to the template file:
Sample code:

Workbook workbook = new Workbook(“Chart+1.xlsx”);

I have logged a ticket with an id “CELLSJAVA-42274” for your issue. We will look into it soon.

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

Thank you.


This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42274”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

Once the fix is available for public use, we will share the Download link here.

Thank you.

Thanks for using Aspose.Cells.

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

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

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