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

Free Support Forum - aspose.com

Aspose Cells - Converting an xls file to xlsx - java.lang.NullPointerException

Hi, I am using Aspose Cells to convert an XLS to XLSX.
I am unable to upload the xls file.

I got this error stack:

java -jar C:\temp\ExcelProject\ASPOSEConverter.jar “C:\temp\ExcelProject\19INR0073_RENEWABLE_FORM.xls” “C:\temp\ExcelProject\19INR0073_RENEWABLE_FORM.xlsx”
converting : C:\temp\ExcelProject\19INR0073_RENEWABLE_FORM.xls --> C:\temp\ExcelProject\19INR0073_RENEWABLE_FORM.xlsx
java.lang.NullPointerException
at com.aspose.cells.zbii$ze.a(Unknown Source)
at com.aspose.cells.zadf.a(Unknown Source)
at com.aspose.cells.zadf.f(Unknown Source)
at com.aspose.cells.zadf.b(Unknown Source)
at com.aspose.cells.zye.s(Unknown Source)
at com.aspose.cells.zye.a(Unknown Source)
at com.aspose.cells.zvo.a(Unknown Source)
at com.aspose.cells.ze.a(Unknown Source)
at com.aspose.cells.ze.a(Unknown Source)
at com.aspose.cells.ze.d(Unknown Source)
at com.aspose.cells.ze.a_(Unknown Source)
at com.aspose.cells.zyd.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at ASPOSEConverter.convertToXLSX(ASPOSEConverter.java:20)
at ASPOSEConverter.main(ASPOSEConverter.java:9)

Could you please help me troubleshoot it…

Thank You,
Madhuri

@MadhuriDara,

Please zip your input XLS file first and then attach the zipped archive here. We will check your issue soon.