If you have any complaints or suggestions about our service or products, please post them here. Your comments will help us to make continuous progress.

Mon Feb 19, 2024 11:33 am

Hello,

After I Upgrade spireoffice for java version 9.1.10,

Started appears the message of evaluation version, how I still have support, can you send the new license file please?

Best Regards

meneghette
 
Posts: 42
Joined: Tue Mar 08, 2022 12:10 pm

Tue Feb 20, 2024 1:44 am

Hello,

Thank you for your inquiry.

I have checked the email address you provided in this thread and verified that your license for the latest version of Spire.Office is indeed active. Could you please provide more details on how you have been using the license? This information will help us ensure that you are making the most of your licensing benefits and assist you further if needed.
Starting from version 10.1.9 of Spire.PDF, version 12.1.0 of Spire.Doc, version 14.1.3 of Spire.Xls, version 9.1.2 of Spire.Presentation,version 5.1.3 of Spire.Barcode and version 1.9.3 of Spire.OCR, we have made changes to the licensing method. Please update your application's applying licensing key method accordingly.
Code: Select all
com.spire.doc.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.doc.license.LicenseProvider.loadLicense();
com.spire.pdf.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.pdf.license.LicenseProvider.loadLicense();
com.spire.presentation.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.presentation.license.LicenseProvider.loadLicense();
com.spire.xls.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.xls.license.LicenseProvider.loadLicense();
com.spire.ocr.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.ocr.license.LicenseProvider.loadLicense();
com.spire.barcode.license.LicenseProvider.setLicenseKey("your office license key");
com.spire.barcode.license.LicenseProvider.loadLicense();

We apologize for any inconvenience caused and for not notifying you in a timely manner.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Tue Feb 20, 2024 12:31 pm

Hello, I changed the code of my application as you asked,

After I did that, started to show an error attached in this ticket

I tried with jdk 1.8 and 17, I got the same error,

below is the code,

I attached a printscreen of code, to get the reference line on stacktrace

Code: Select all
   public byte[] convert(byte[] file,String filename,List<DocumentReplace> documentReplaces) throws IOException {

      license.loadLicense();

      logger.info("Converting " + filename);

      logger.debug("create word document " + filename);

      Document document = new Document();
      logger.debug("Loading from Stream " + filename);

      document.loadFromStream(new ByteArrayInputStream(file), FileFormat.Auto);
      //document.setUseNewEngine(true);
      
      logger.debug("Replacing texts " + filename);
      
      msWordReplace.replace(document, documentReplaces);
      
      logger.debug("save the document to a PDF file. " + filename);

      ByteArrayOutputStream documentConverted = new ByteArrayOutputStream();
      document.saveToStream(documentConverted, FileFormat.PDF);

      logger.info("Converted " + filename);

      return documentConverted.toByteArray();       

   }

meneghette
 
Posts: 42
Joined: Tue Mar 08, 2022 12:10 pm

Wed Feb 21, 2024 6:05 am

Hello,

Thank you for your feedback.
Is this error thrown at the new Document()? You can comment out other code first and confirm it. This error is more likely to be thrown when loading the document. If so, in order to more accurately locate the issue, you can save the loaded stream as a Word document and then provide it to us. Don’t worry, we will absolutely keep your documents confidential and won’t use them for other purpose.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1508
Joined: Wed Apr 25, 2018 3:20 am

Wed Feb 21, 2024 10:07 am

Hello

Yes The Error is on new Document();

I do not load the document yet

Just call new Document() the error happens, but of I do not load the license, the error not happens

this is the method to load the license

Code: Select all
private void load(String fullPath) {
      com.spire.license.LicenseProvider.setLicenseFile(fullPath);

      com.spire.doc.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.doc.license.LicenseProvider.loadLicense();
      
      com.spire.pdf.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.pdf.license.LicenseProvider.loadLicense();
      
      com.spire.presentation.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.presentation.license.LicenseProvider.loadLicense();
      
      com.spire.xls.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.xls.license.LicenseProvider.loadLicense();
      
      com.spire.ocr.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.ocr.license.LicenseProvider.loadLicense();
      
      com.spire.barcode.license.LicenseProvider.setLicenseKey(fullPath);
      com.spire.barcode.license.LicenseProvider.loadLicense();

      
   }

meneghette
 
Posts: 42
Joined: Tue Mar 08, 2022 12:10 pm

Wed Feb 21, 2024 10:13 am

Adding more information

IF I use the code to load license

com.spire.doc.license.LicenseProvider.setLicenseFileName(fullPath);
com.spire.doc.license.LicenseProvider.loadLicense();


The error not happens, but show the evaluation warning

Evaluation Warning: The document was created with Spire.Doc for JAVA.

You can find attach the files

as I sad before, I think we need a new license file because inside the license file is the version 8.2, below you can see

Code: Select all
<Products>
      <Product>
         <Name>Spire.Office for JAVA</Name>
         <Version>8.2</Version>
                         .....
      </Product>
   </Products>


Please can you provide a new license file?

meneghette
 
Posts: 42
Joined: Tue Mar 08, 2022 12:10 pm

Thu Feb 22, 2024 3:25 am

Hello,

Thank you for your feedback.
After conducting an investigation, I have found that your license file is valid for the latest version of Spire.Office. Please use the following two methods to load the license.
Code: Select all
com.spire.doc.license.LicenseProvider.setLicense(fullPath);
//or
com.spire.doc.license.LicenseProvider.setLicenseKey(licenseKey);

Additionally, please note that the method com.spire.doc.license.LicenseProvider.setLicenseFileName(FileName) does not support adding a file path when loading the license, which may result in the license not being applied correctly.
If you have any further questions or need assistance with this process, please do not hesitate to reach out.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Complaints & Suggestions