java.lang.NumberFormatException: For input string: "null"

Hello,







Run my code. it throws Error. Using Java aspose-cells-8.4.0.jar







Exception in thread “main” java.lang.NumberFormatException: For input string: “null”



at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)



at java.lang.Integer.parseInt(Integer.java:492)



at java.lang.Integer.parseInt(Integer.java:527)



at com.aspose.cells.b.a.zp.a(Unknown Source)



at com.aspose.cells.zakl.E(Unknown Source)



at com.aspose.cells.zada.o(Unknown Source)



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



at com.aspose.cells.zacy.h(Unknown Source)



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



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



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



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



at com.huawei.it.edoc.init.ExcelInit.main(ExcelInit.java:25)











How can i avoid this. here is my code.





LicenseManager.getInstance();



DataSource dataSource = new FileDataSource(“d:\测试文档.xlsx”);



LoadOptions opt = new LoadOptions();



InputStream in = dataSource.getInputStream();



Workbook workbook = new Workbook(in, opt);

Hi,


Thanks for the template file.

After an initial test, I observed the issue as you mentioned. I found “java.lang.NumberFormatException” on opening the template XLSX file via Aspose.Cells APIs:
e.g
Sample code:

Workbook workbook = new Workbook(fileName);

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

Thank you.

Hi,


Please try our latest version/fix: Aspose.Cells for Java v8.4.0.7

We have fixed your issue now.

Let us know your feedback.

Thank you.

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


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