setLicense fails

Hi,

I have purchased Aspose and while trying to set the license file, I get an exception which says -
Exception in thread “main” java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
at aspose.pdf.License.b(SourceFile:532)
at aspose.pdf.License.a(SourceFile:246)
at aspose.pdf.License.setLicense(SourceFile:76)
at com.unica.thumnailgenerator.HThumbnailGenerator.main(HThumbnailGenerator.java:182)

The steps that I perform for setting the license file are:

aspose.pdf.License lic_pdf = new aspose.pdf.License();
com.aspose.cells.License lic_cells = new com.aspose.cells.License();
com.aspose.pdf.kit.License lic_pdf_kit = new com.aspose.pdf.kit.License();
com.aspose.slides.License lic_slides = new com.aspose.slides.License();
try {
lic_pdf.setLicense(new FileInputStream(“c:\Aspose.Total.Java.lic”));
lic_cells.setLicense(new FileInputStream(new File(“c:\Aspose.Total.Java.lic”)));
lic_pdf_kit.setLicense(new FileInputStream(new File(“c:\Aspose.Total.Java.lic”)));
lic_slides.setLicense(new FileInputStream(new File(“c:\Aspose.Total.Java.lic”)));
} catch (Exception e) {
//catch exception here
}

I get the same exception for aspose.cells, pdf-kit and slides as well.

I got these steps from the url - Licensing and limitations|Aspose.PDF for Java

Please tell me if I am missing some step.

Thanks.

Hi,

Thanks for using our products.

I am a representative from Aspose.Pdf team. Can you please share some details regarding your development environment i.e. which version of Aspose.Pdf you are using, JDK version, your operating system and any particular tool that you are using.

We apologize for your inconvenience.

Hi,

Here are the details that you asked for:
I am using aspose.pdf.jar file in the java build path. The version of this jar file is 2.6.0 and I am using the one made for jdk1.5 version.
I am working on Windows XP and using eclipse galileo for development purposes.
My jdk version is 1.5.0_22

Please let me know if you need any more details.
Quick resolution of problem would be high;y appreciated.

Thanks a lot.
Suprita

Hello Suprita,

Sorry for replying you late. In fact I have been busy while testing the scenario and I’m able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFJAVA-18621. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.


Oh, so this is a issue. But I have a dependency and I need it to be fixed urgently.
Can anything be done about it?
Please let me know.

Hello,


This error is fixed in 2.7.0 release. It will be available very soon.

Do you have any updates on this one?
I need the fix urgently.

You said that it would be available in 2.7.0 release of aspose.pdf. But what about aspose.cells, aspose.pdf.kit and aspose.slides?
I am getting the exception for all four statements -

aspose.pdf.License lic_pdf = new aspose.pdf.License();
com.aspose.cells.License lic_cells = new com.aspose.cells.License();
com.aspose.pdf.kit.License lic_pdf_kit = new com.aspose.pdf.kit.License();
com.aspose.slides.License lic_slides = new com.aspose.slides.License();

Regards,
Suprita

Hi Suprita,

I represent Aspose.Pdf.Kit. I have tested this issue on Windows XP using JDK 1.5 and latest version of Aspose.Pdf.Kit for Java. However, I couldn’t notice any problem. Can you please make sure that you’re using the latest version of the component? If you still find the same issue at your end then please do let us know.

We’re sorry for the inconvenience.
Regards,

Hi,

I am a representative of Aspose.Cells for Java. I have tested using license with latest version of Aspose.Cells for Java v2.3.1.x and it works fine, I am using Windows 7, JDK1.5, here is my test program:

import com.aspose.cells.;
import java.io. ;

public class Licensing {

public static void main(String[] args) throws Exception
{

License license = new License();
FileInputStream inputStream = null;
inputStream = new FileInputStream(“e:\licenses\Aspose.Cells.lic”);

license.setLicense(inputStream);

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

workbook.save(“d:\Files\licensing_test.xls”);

}

}

If you still find any issue with Aspose.Cells for Java, kindly create a sample application (sample code as (above) and your license file etc.), zip it and post us via email, see the steps how you may post us the sample project:

To email (with your attachment(s)), please follow the below mentioned steps:

1: click the Contact button in the Post

2: In the drop down list options click "Send Amjad Sahi an Email”.

3: Attach the project and send it (you may zip the files prior attaching it).

4: Once you have done it, kindly confirm us here in this thread.

Thank you.

The issues you have found earlier (filed as 18621) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi Suprita,

I am from Aspose.Cells team. Adding more to my fellow worker Amjad’s comments, I am not able to see any problem when using Aspose.Cells for Java with Eclipse. My JDK is also 5.0 and I tested with v2.3.0. By the way, which version of product you are using ?