Set License Fails

Hi,


I purchase a license for Aspose JAVA Total.

I use this license in my project, I set the license for each product. This works correctly for com.aspose.words, com.aspose.pdf and com.aspose.imaging but when I am trying to set the license for com.aspose.cells I get an exception :

com.aspose.cells.CellsException: Cannot find black listed licenses resource or black list is invalid. Please report this error to Aspose.
at com.aspose.cells.License.b(Unknown Source)
at com.aspose.cells.License.d(Unknown Source)
at com.aspose.cells.License.a(Unknown Source)
at com.aspose.cells.License.setLicense(Unknown Source)
at fr.rs2i.pacifica.sesamenet.TestTools.getFileFromRelativePath(TestTools.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NullPointerException
… 29 more

My code :

InputStream asposeLicense = Converter.class.getResourceAsStream("/Aspose.Total.Java.lic");
com.aspose.words.License lWords = new com.aspose.words.License();
lWords.setLicense(asposeLicense);
asposeLicense = Converter.class.getResourceAsStream("/Aspose.Total.Java.lic");

com.aspose.pdf.License lPdf = new com.aspose.pdf.License();
lPdf.setLicense(asposeLicense);
asposeLicense = Converter.class.getResourceAsStream("/Aspose.Total.Java.lic");

com.aspose.imaging.license.License lImage = new com.aspose.imaging.license.License();
lImage.setLicense(asposeLicense);
asposeLicense = Converter.class.getResourceAsStream("/Aspose.Total.Java.lic");
com.aspose.cells.License lExcel = new com.aspose.cells.License();
lExcel.setLicense(asposeLicense);

Thank you

Hi,


I would like to address the issue regarding Aspose.Cells for Java.We need your license file to evaluate your issue with the Purchase section’s representative. Please follow the instructions on how to send your license via email to us, please don’t send or attach license in the forum thread here:
http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Thank you.


Hi,


I have received your Aspose.Total.Java license via email.
I have tested your license with v7.5.1 (latest version of Aspose.Cells for Java) using the following code, it works absolutely fine and I got the output file fine without any exception or an evaluation watermark sheet.

Sample code:

License license = new License();
FileInputStream inputStream = null;
inputStream = new FileInputStream(“e:\licenses\17-7-2013 Aspose.Total for Java\Aspose.Total.Java.lic”);
license.setLicense(inputStream);


//Instantiating a Workbook object
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.getWorksheets().get(0);
Cells cells = worksheet.getCells();
Cell cell = cells.get(“A1”);
cell.setValue(“Hello”);
workbook.save(“TestDocument1.xls”);

I have attached the output file for your reference here.

Thank you.