NullPointer while creating Workbook object

Hi

Below is the stack trace.

java.lang.NullPointerException
at com.aspose.cells.jk.a(Unknown Source)
at com.aspose.cells.jr.e(Unknown Source)
at com.aspose.cells.jr.a(Unknown Source)
at com.aspose.cells.jq.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
at com.verizon.obi.CopyOfReadExcel.main(CopyOfReadExcel.java:37)

Line# 37 of CopyOfReadExcel.java is

Workbook wb = new Workbook(filePath);

Basic code in my program:

String filePath = “Sep2015MEC.xlsx”;

		HtmlSaveOptions sv = new HtmlSaveOptions(SaveFormat.HTML); 
		 Workbook  wb = new Workbook(filePath);
		wb.save("Sep2015MEC.html", sv);

Hi,


Thanks for providing us some details.

Could you provide us your template XLSX file, so we could evaluate your issue properly.

Thank you.

Hi


I could resolve the issue with the latest jar file. However, I see the evaluation message, once the program is run. Is there any way I can see the actual output html?

Thanks

Hi,


It is good to know that you are able to resolve the problem while using the latest revision of the API. Regarding the evaluation message on the resultant files, it is probably due to the reason that your existing license subscription isn’t allowing you to use the latest revision of the API so you have to renew it. However, you can request for a 30 day temporary license in order to test the latest revision without any evaluation limitations.