java.lang.IllegalArgumentException: Invalid row index: -1

Hi,

Using Cells version 2.1.0.24 we sometimes get the following exception when generating files from scratch (not based on a template). We did not get this error with version 2.1.0.

java.lang.IllegalArgumentException: Invalid row index: -1

at com.aspose.cells.cz.e(Unknown Source)

at com.aspose.cells.Rows.a(Unknown Source)

at com.aspose.cells.Cells.a(Unknown Source)

at com.aspose.cells.Cells.b(Unknown Source)

at com.aspose.cells.Cells.a(Unknown Source)

at com.aspose.cells.O.a(Unknown Source)

at com.aspose.cells.O.a(Unknown Source)

at com.aspose.cells.O.a(Unknown Source)

at com.aspose.cells.er.a(Unknown Source)

at com.aspose.cells.Comment.a(Unknown Source)

at com.aspose.cells.dP.a(Unknown Source)

at com.aspose.cells.r.g(Unknown Source)

at com.aspose.cells.r.a(Unknown Source)

at com.aspose.cells.Workbook.save(Unknown Source)

Thanks and best regards,
Ulf

Hi,

Thank you for considering Aspose.

We will look into your issue and get back to you soon. Your issue is registered in our issue tracking system with an issue id CELLSJAVA-11234.

Thank You & Best Regards,

Hi,

We have fixed a bug of setting Shape’s position which might cause such
an Exception. Please try this new fix (attached) to check whether the bug we fixed is the one
you are actually facing. If this fix cannot solve your problem, I am afraid we need your
sample code to reproduce the issue, so that we can trace and figure it out.

Thank you.

Hi,

The original exception is gone. Instead I get this for certain xlsx files:

java.io.IOException: Unsupported address: com.aspose.cells.NamedRange; Should be one of classes: com.aspose.cells.gv, com.aspose.cells.S, com.aspose.cells.Name
at com.aspose.cells.Workbook.save(Unknown Source)

Best regards,
Ulf Ekström

Hi,



Please use the attached new fix v2.1.0.28 (instead of v2.1.0.27 that I
attached in my previous post in the thread) as we did fix a possible
bug (for calculating formula(s)) in it which was there in the previous
fix. So, kindly just disregard my previous fix (v2.1.0.27).


Kindly let us know if you still find any issue.


Thank you.

Works perfect now. Thanks!

Regards,
Ulf

The issues you have found earlier (filed as 11234) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.