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

Free Support Forum - aspose.com

JIT Issue on IBM Websphere Application Server

Hi all.
Some days ago I was posting an issue regarding ‘The document appears to be corrupted and cannot be loaded’ when I tried to create a Document. Please check the history in link below<A title=blocked::
I was able to solve this issue on my environment configuration setting a option on my Websphere server, I mean , there is a Java Virtual machine options on my server that says ‘Disabled JIT’. I checked on this option.
So on my new requirements I wasn’t able to check on this so I need to know if u can provide me the version that not require this flag enabled.
Please contact me ASAP.
Thanks in advance.

Hi,
I will send you non-optimized Aspose.Words jar.
Please, inform me which option (jdk 1.4, 1.5 or 1.6) you are needed.
Best regards,

Thanks for your help. We are using Aspose.Words.jdk14.jar so please sent me the update.
Best Regards,

Thanks for your interest in Aspose.Words for Java.
I have emailed you Aspose.Words.jdk14.jar without optimization that should work with IBM JIT. Please, check your e-mail.
Best Regards,

Hi,
I am using the Aspose license version. I too face the same issue while using Aspose on Websphere Application Server. Can you provide with the non-optimized Aspose.Words jar. I need it for jdk 1.4 . Could you please send me the same at the earliest.
Thanks in advance.

Hi
Thanks for your inquiry. The issue is already fixed in the latest version of Aspose.Words for java. Please download the latest version from here:
https://releases.aspose.com/words/net
Best regards.

Hi
Thanks for your information. Could you please let me know the below details as well.
(1) Should the license be loaded explicitly using License class? Or is it enough to have it in the lib dir of application (same location as the aspose.word and and aspose.cell jars? Is there any OS dependency (Windows/AIX) ?
(2) We have license for Aspose 2.1. If 2.6.0 is the solution for “document corrupted” error, should a separate license be procured or would the 2.1 license suffice ?
Thanks.

Hi
Thanks for your request.

  1. You should use License class to set Aspose license. Please see the following link to learn more:
    https://docs.aspose.com/words/net/licensing/
  2. Every Aspose license carries a one-year subscription for free upgrades to any new versions or fixes that come out during this time. Aspose.Words for java 2.1.0.0 was published on 13th of April 2007. So I think you should renew your license. Please contact our sales team in Aspose.Purchase forum to learn how to renew your license.
    https://forum.aspose.com/c/purchase/6
    Also you can check expiration date of your license. Open license file using notepad. You will see the following tags:
    20070118
    It means that you can free upgrade to version of Aspose.Words published before 01/18/2007.
    Best regards.

Hi,
My License has the following entries
20090604
2.1
Am i good to download and use the 2.6.0 kit ? Should i be worried abt the LicenseVersion ?
Thanks!

Hi
Thank you for additional information. Yes, you can free upgrade to 2.6.0.0 version. You should not be wary about license version.
Best regards.

Hi
We are using aspose-words 2.6 API for merge functionality. We are iteratively calling the below method to create the documents.
doc.getMailMerge().execute(fieldNames, fieldvalues);
We could find that some documents are getting created properly and some of them are corrupted.
Please let us know the possible issue.
Thanks.

Hi
Thanks for your request. Could you please attach your template and provide me code that will allow me to reproduce the problem. I will investigate the issue and provide you more information.
Best regards.

Hi,
Can you attach a small code snippet and the template documents so we can reproduce the issue?
Are you using IBM Websphere? What version of Aspose.Words you are using?
Regards,

Yes we are using IBM Websphere Portal Server 6.0.1.3. The aspose-word version is 2.6.0.
Please find below the code snippet

Document doc = new Document(sourceDocPath);
doc.getMailMerge().execute(fieldNames, fieldvalues);
doc.save(newDocPath);

The field names and field values are read from a CSV file using the aspose cells API. The template is a MS Word 2003 document. The placeholders were created using the ‘Merge field’ option.

Please attach also your template. The document could help us to reproduce the problem.
Best regards.

Hi
I have attached the template that we used. We could find that the merged document is getting corrupted if we have images in the template.
Thanks.

Hi
Thank you for additional information. I still can’t reproduce this problem on my side. Could you please provide me additional information about problem? I used the following code for testing.

Document doc = new Document("C:\\Temp\\MailMergeWordTemplate.doc");
String[] names = { "Number1", "Number2", "Number3", "Number4" };
Object[] values = { "test1", "test2", "test3", "test4" };
doc.getMailMerge().execute(names, values);
doc.save("C:\\Temp\\out.doc");

Best regards.

Hi
When i tried to run the same in an independent java class using main method it works but we are facing this issue when we deploy in the IBM Websphere Portal server. When i iteratively called the merging code with two different field values the first merged document is corrupted and other is proper. With other iterative requests all of the them were corrupted. The merge response is not consistent when the template has image in it.
Thanks.

Hi,
Many our users are using Websphere + Aspose.Words and nobody reported about such a thing so far.
But your description is looking like some kind of multithread issue. Probably several copies of an application are trying to use the template or the picture simultaneously. The simplest thing I can suggest is:

  1. Please, check your Websphere configuration.
  2. Clear all caches and restart your server (may be extra threads live in the cache).
    Best regards.

Hi
We are using Aspose cells 2.1 and Aspose words 2.6.0. We are not facing this issue for Aspose cells but only for Aspose words. This issue is in AIX and not in Windows. Please find the attached code to reproduce the issue.
Thanks.