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

Free Support Forum - aspose.com

Error happens in setLicense();

Hello,

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"));
license.setLicense(inputStream);

} finally {
if(inputStream != null)
inputStream.close();
}<?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.

Thanks.

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 8.0.1.4. 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 8.0.1.4
  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