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

Free Support Forum - aspose.com

Error happens in setLicense();


I'm facing the problem of reading and setting a license key.

The line ' inputStream = new FileInputStream(... ' works properly, but the error occationally

happens in next line 'license.setLicense(inputStream); '.

Please see followings:


License license = new License();
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(getServletConfig().getServletContext().getRealPath( "/WEB- INF/lib/Aspose.Cells.69700.lic"));

} finally {
if(inputStream != null)
}<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


I'm wondering wether the sourse program above has a probem.

Let me know if you need to check our license key.

Please make a reply.


Hi Hyunrae,

Thank you for contacting Aspose support.

We have evaluated your presented scenario on our end by setting the license from stream while using the latest version of Aspose.Cells for Java Unfortunately, we are unable to notice any problem/exception. We would request you to please give the latest version a try on your end to see if the latest build makes any difference.

In case the problem persists, please provide us the following,

  1. An executable sample application using Aspose.Cells for Java
  2. Error message details along with stack trace
  3. Environment details, such as
  • Operating system version
  • Operating system architecture (32bit/64bit)
  • JDK/JRE type & version