FYI - I just tried starting Weblogic using the jrocket JVM that shipped with Weblogic 9.1 (D:\bea\jrockit90_150_04).
Same issue. I know I tried all these things before, but thought you might ask, so I tried again.
I have tried so many things now that I think I could reproduce this issue anywhere, given myEclipse and Weblogic. I had even tried on a new machine, running Windows 7 with Weblogic version 10 and had exactly the same issue.
So, if this is an internal issue, like network related, then what else is happening when trying to open a document?
Michael
Hi Michael,
It is unfortunate to hear about the issue you are having .We will do our best to find the issue and resolve it as soon as possible. Could you please clarify if the same issue happens when loading a blank document? i.e calling Document doc = new Document();
Thanks,
Adam,
Yes. I just tried running my test Servlet with a blank document as you have described above and indeed it took several seconds to instance the (empty) Document object.
Here is the output from my test Servlet (provided earlier)…
The first time hitting the Servlet it took 24 seconds…
Begin open Document. time=2012-05-04 11:18:25.764
Finished opening Document. time=2012-05-04 11:18:49.035
The second time took only a few milliseconds!..
Begin open Document. time=2012-05-04 11:18:56.113
Finished opening Document. time=2012-05-04 11:18:56.129
Of course there will be some time to load the Servlet, but that is typically less than one second.
Thank You,
Michael
Hi Michael,
Thanks for your patience and providing the additional information. We are working over your query and will get back to you as soon as possible.
Best Regards,
Have you been able to reproduce this issue?
Hi
Michael,
Thanks for your patience. I have restarted my machine and tested your scenario over Oracle’s WebLogic Server 10.3.0; the total elapsed time observed on 64-bit Windows 7 platform for the first run was 44 seconds. But, it includes the time WebLogic Server takes to start (approx 43 seconds for the first time). The ‘Document’ loading did not take much time (approx 0.5 seconds) on my side. Moreover, I used the latest version of Aspose.Words for Java i.e. 11.4.0 on my side. Could you please download the latest version of Aspose.Words from the following link and let us know how it goes on your side?
https://downloads.aspose.com/words/java
I hope, this will help.
Best Regards,
If you used my simple test servlet, it is clear that I am not counting the time it takes for Weblogic server to start up! I did download the latest version back in April when I reported this issue to you and I don’t have the time to keep proving this issue to you. Unless you can tell me that you 1. reproduced the issue in Words 11.2.0 or earlier and 2. That you have made some changes related to this in the latest version, then NO I am not going to download yet anther release and waste my time testing this.
By the way - did you test this using myEclipse? and using hot deploy? That is the scenario - development, not production.
Hi
Michael,
Thanks for the additional information.
We always encourage our customers to use the latest release versions of Aspose.Words as it contains newly introduced features, enhancements and fixes for issues reported earlier. Now concerning to the issue that you are facing, I used the same setup including MyEclipse, WebLogic and Windows 7 on my side. Could you please create and attach here a simple WebApplication. I will host this web app on my side and let you know my findings then. We’re sorry for the inconvenience.
Best Regards,
OK - here it is. I am attaching a zip file with an Enterprise Application created in Eclipse just for you.
Notes:
- I used the latest version of Aspose Words for Windows library (11.4.0).
- I created an EAR and WEB project to make it the same as my development efforts.
- You should deploy the (exploded) EAR to Weblogic from withing Eclipse, do not build an .ear file and deploy directly to Weblogic.
- My license file is in the config folder of the EAR project - obviously replace this with your own.
As noted earlier I am using myEclipse Workbench version 8.5 and running Weblogic version 9.1
This is done to match the customer’s configuration for development and deployment. While I have tried this with Weblogic 10 and a newer version of myEclipse, that system is no longer available to me.
I used the following URL to fire the test Servlet… http://localhost:7001/AsposeStartupDelayTestWeb/servlet/test
Here are the results…
Begin open Document. time=2012-06-05 13:36:52.4
Finished opening Document. time=2012-06-05 13:37:18.101
Looks like it took 25 seconds.
Notice that I am not even opening a document, just creating an empty Document instance.
When opening a real document it takes so long that the request to the browser times out and the test case at hand is consumed (there is usually other logic tied to the creation of the Word document).
Subsequent calls to the test servlet return instantly, or in a few seconds when opening a file…
Begin open Document. time=2012-06-05 13:43:42.805
Finished opening Document. time=2012-06-05 13:43:42.805
Hi Michael,
Thank you for providing the additional information and your patience. We are working over you query and please expect a reply within next 24 hours.
Best Regards,
Hi
Michael,
Thanks for your patience. I have tested your scenario over the following test environment:
MyEclipse version 10.1
Oracle’s WebLogic Server version 10.3.0
Aspose.Words for JAVA version 11.4.0
OS: 64-bit Windows 7
JDK version 1.6
Unfortunately, I was unable to reproduce this issue on my side. I have requested another Aspose.Words support engineer to take a closer look at your problem. He will get back to you shortly.
We’re sorry for the inconvenience.
Best Regards,
Hi Michael,
Thanks for your inquiry.
I just noticed this thread is still left open. Did you manage to fix the issue on your side or are you still in need of assistance?
Thanks,
- No, I have not found a solution to this issue.
2. Despite the last reply from Awais Hafeez, he did not say that he tested by hot deploying (exploded deployment from myeclipse to Weblogic). This is essential to the issue and I think I made that clear.
3. I have spent way too much time on this issue. do NOT ask me to provide more information, download yet another new release or waste my time trying anything. I’m done.
Hi Michael,
We are sorry to hear you are still having problem getting things to work on your side. We of course do everything possible to reproduce the issue on our side so we can assist you further.
In this case perhaps the support developers did try to reproduce the issue using the method you presented but simply forgot to mention it in their reply. I will follow up with this with them to clarify. In any case, I will ask the support team to try hard once again to reproduce the issue that you are having. I will get back to you as soon as possible with any news.
We apologise for any inconvenience.
Thanks,
Hi Michael,
Please accept our apology for the inconvenience faced. We have managed to reproduce this issue on our side. I have logged this issue in our bug tracking system with a high priority tag. The issue ID is WORDSJAVA-596. Your request has also been linked to this issue id and you will be notified via this thread as soon as it is resolved.
Please feel free to contact us for any further assistance.
Best Regards,
Hi Michael,
In addition to Tilal’s feedback, just to answer your original query our support developers did originally attempt to reproduce the issue using exploded deployment from myeclipse to Weblogic, however was unable to reproduce the problem at the time.
We have now reproduced the issue using another setup and will get back to you as soon as their is any analysis of the issue.
Thanks
Great,
Someone at Aspose gets a gold star for reproducing the issue.
I can’t wait to find out what is causing the delay, and what was your “other setup”.
Michael
Hi Michael,
Thanks for your patience and cooperation. We just want you to keep updated about our progress of analyzing above issue. We have performed some tests against above scenario and notable of them is to increase the memory arguments of JVM as following which helped us to decrease time-lag to 20 secs, while opening a document from local drive…
-Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=1024M
We are about to finish our testing and will let you know about our final findings/suggestion soon.
Best Regards,
Hi Michael,
Regarding the issue you are having with first time lag when deploying Aspose.Words on your development server, we performed many tests on our side and have found that the cause of this issue is most likely not a bug. The delay is most likely caused by Aspose.Words being a large application which demands some time for compilation, loading, deployment etc. We are not sure how to optimize your particular Eclipse+Weblogic development environment
There may be ways to improve the load time by trying the follow tweaks:
- Rise all memory arguments like:
-Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=1024M
(without disabling the JIT). - Find common ways to optimize Eclipse+Weblogic development environment.
- Use Weblogic Fast-Swap to exclude reloading of unchanged classes. Or just rise page timeout for your test environment.
This issue is still open as we may take another look sometime later to see if anything can be done to help improve the load time. However in the mean time this issue is postponed.
Thanks,