Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

setLicense fails

Last post 07-27-2010, 3:27 PM by Salman Shakeel. 11 replies.
Sort Posts: Previous Next
  •  07-16-2010, 9:09 AM 249055

    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 - http://www.aspose.com/corporate/purchase/faqs/use-license.aspx

    Please tell me if I am missing some step.

    Thanks.
     
  •  07-16-2010, 5:45 PM 249129 in reply to 249055

    Re: setLicense fails

    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.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  07-19-2010, 12:50 AM 249173 in reply to 249129

    Re: setLicense fails

    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
     
  •  07-20-2010, 7:38 AM 249487 in reply to 249173

    Re: setLicense fails

    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.

     

    We apologize for your inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
  •  07-21-2010, 12:36 AM 249609 in reply to 249487

    Re: setLicense fails


    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.
     
  •  07-21-2010, 4:48 AM 249637 in reply to 249609

    Re: setLicense fails

    Hello,

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

    Serge Sivkov
    Developer, Aspose.Pdf.Java Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  07-26-2010, 4:47 AM 250360 in reply to 249609

    Re: setLicense fails

    Do you have any updates on this one?
    I need the fix urgently.
     
  •  07-26-2010, 4:52 AM 250362 in reply to 250360

    Re: setLicense fails

    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
     
  •  07-27-2010, 5:02 AM 250578 in reply to 250362

    Re: setLicense fails

    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,

    Shahzad Latif - [Follow me on Twitter!]
    Support Developer/Developer Evangelist
    Aspose Sialkot Team
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
  •  07-27-2010, 6:55 AM 250598 in reply to 250578

    Re: setLicense fails

    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.





    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  07-27-2010, 8:18 AM 250621 in reply to 249055

    Re: setLicense fails

    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.
     
  •  07-27-2010, 3:27 PM 250738 in reply to 250362

    Re: setLicense fails

    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 ?

    Sincere Regards,

    Salman Shakeel
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
View as RSS news feed in XML