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

Free Support Forum - aspose.com

java.lang.OutOfMemoryError: GC overhead limit exceeded

Hi Team,


Please check the attached files to replicate the test case.
Aspose Version : aspose-words-17.4.0
Java Version : 1.8.0_121

File Payroll Register.xml is the original file created by us. We tried generating PDF directly with the attached template Payroll Register.rtf . Got error!!!

Please check the attached Error Stack.docx for complete error details encountered.

Now to temporarily fix the issue, we split the file Payroll Register.xml to multiple parts(Payroll Register1.xml etc). Now, PDF generation works fine(but is very slow). But HTML gives error with the same files.

Thanks,
Sukesh

Hi Sukesh,

Thanks for your inquiry. We have tested the scenario with your shared documents and noticed the reported OutOfMemoryError issue. We have logged following issues in our issue tracking system for further investigation and rectification. We will notify you as soon as these issues are resolved.

WORDSJAVA-1536: Mail Merge issue of Payroll Register1.xml
WORDSJAVA-1537: Mail Merge issue of Payroll Register.xml

We are sorry for the inconvenience.

Best Regards,

Tilal, our customer is not accepting multiple PDF’s. Can you please take this as priority and provide fix as soon as possible.

I also have some concerns regarding the size of the HTML generated even for small XML file.

It seems you guys are writing styles for each and every line of HTML, instead of using internal style sheet.
Please check the attached files.





Hi Sukesh,

sukesh.kotian@eistech.com:
Tilal, our customer is not accepting multiple PDF's. Can you please take this as priority and provide fix as soon as possible.

Thanks for your feedback. We have recently noticed the issue and currently it is in analysis phase. It is quite difficult to make any promise at the moment. However, we have recorded your concern and will keep you updated.

However as a workaround, you may concatenate your PDF documents using Aspose.Pdf for Java.

Best Regards,

Hi Tilal,


Tried the below code as given in the example
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>Document pdfDocument1 = new Document(“input1.pdf”);
Document pdfDocument2 = new Document(“input2.pdf”);
pdfDocument1.getPages().add(pdfDocument2.getPages());
pdfDocument1.save(“Concatenate_output.pdf”);
Line no.3 gives error in my Aspose version.

Error:(26, 49) java: cannot find symbol
symbol: method getPages()
location: variable pdfDocument2 of type com.aspose.words.Document

Thanks & Regards,
Sukesh

Hi Sukesh,


Thanks for your feedback. Please note as stated above the concatenation of PDF feature belongs to Aspose.Pdf for Java. So you have to download and include Aspose.Pdf for Java Jar in your project to use this feature. For using Aspose.Pdf for Java Document object you need to use complete reference as com.aspose.pdf.Document. It will help you to accomplish the task.

Best Regards,
Hi Sukesh,

sukesh.kotian@eistech.com:
I also have some concerns regarding the size of the HTML generated even for small XML file.
It seems you guys are writing styles for each and every line of HTML, instead of using internal style sheet.
Please check the attached files.

Thanks for your inquiry. We have noticed your reported issue and logged a ticket WORDSJAVA-1538 in our issue tracking system for further investigation. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience.

Best Regards,
tilal.ahmad:
Hi Sukesh,

Thanks for your feedback. Please note as stated above the concatenation of PDF feature belongs to Aspose.Pdf for Java. So you have to download and include Aspose.Pdf for Java Jar in your project to use this feature. For using Aspose.Pdf for Java Document object you need to use complete reference as com.aspose.pdf.Document. It will help you to accomplish the task.

Best Regards,

Added Aspose.pdf to my project and got error while running the program. Please refer the attached files for more details.

Thanks,
Sukesh

Hi Sukesh,


Thank you for the inquiry. An error occurred because your Aspose license is not properly applied. We have tested your PDFs and code against the latest version 17.4 of Aspose.Pdf for Java API. After applying an Aspose license, it works fine. We have attached an output PDF for your kind reference.

Kindly open your license file using any editing tool like notepad and verify the license expiry date. The expiry date will be in “subscriptionexpiry” tag and make sure that the Aspose.Pdf for Java API release date should be less than this. However, if your Aspose license is not expired, then please send us your license file for the testing purposes. Please refer to this helping link: Send your Confidential File to an Aspose Staff Member

Hi Sukesh,


Thank you for sending the key and license details. We need your complete license file because each license file is digitally signed and it must not be modified. Even inadvertently adding an extra space will invalidate the file. Please send your license file as an attachment of the email.

imran.rafique:
Hi Sukesh,

Thank you for sending the key and license details. We need your complete license file because each license file is digitally signed and it must not be modified. Even inadvertently adding an extra space will invalidate the file. Please send your license file as an attachment of the email.


We have not modified the file. I just copied the contents of the file and sent it.


Hi Sukesh,


Thank you for the details. Aspose license is a plain XML text file that contains details such as the product name, number of licensed developers, subscription expiry date and so on. Your email context does not include XML tags and also appears as incomplete (if we compare with our license file). It is difficult for us to rebuild your license, so kindly send us your complete license file. Your response is awaited.

Hi Sukesh,


Thank you for sending a complete license file. We have executed your test case in Eclipse and IntelliJ IDEA using the latest version 17.4 of Aspose.Pdf for Java API and unable to replicate the said error. It appears as the Aspose license is not being applied at some stage during the execution of the application. Kindly make sure to set license once per application or process for each Aspose library. Aspose License should be applied in some common area of the application.

Please also note that the Aspose license should be applied before calling any Aspose library feature. This help topic demonstrates how to apply license: Apply License to Aspose.Pdf for Java API

The issues you have found earlier (filed as WORDSJAVA-1536) have been fixed in this Aspose.Words for .NET 17.6 update and this Aspose.Words for Java 17.6 update.


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

The issues you have found earlier (filed as WORDSJAVA-1537) have been fixed in this Aspose.Words for .NET 20.10 update and this Aspose.Words for Java 20.10 update.