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

Free Support Forum - aspose.com

Save() operation throws NullPointerException


Attached “OD rebooking ALL.xls” document throws NullPointerException when I try to save it with new name. Code example is below:

Workbook workbook = new Workbook(“OD rebooking ALL.xls”);

workbook.save(“OD rebooking ALL_saved.xls”);

Also, mentioned file is attached to this post. Can You help me here?

Thanks, Zeljko

Hi Zeljko,

Thanks for your posting and using Aspose.Cells for Java.

Please download and use the latest version: Aspose.Cells for Java 8.1.2 it should fix your issue.

We tested your code with your source file using the latest version and it did not throw any exception. It opened and saved the file successfully.

I have attached the output xls file for your reference.

Thank You,

currently I am using aspose.cells 7.5.3 version, but with the new one issue no longer exists.

Best regards,


Good to know that latest version figures out your issue now. We recommend you to use our latest versions of the product (e.g v8.1.2) in which we made enhancements related to file formats and conversions. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.