Apache OpenOffice (AOO) Bugzilla – Issue 79541
XComponent:dispose() method is hung
Last modified: 2017-05-20 11:27:28 UTC
Hi, I am doing a conversion from .odt to .pdf (API 2.2.0), after converting the document i am disposing all the resorces using 'dispose()' method of XComponent interface. But the method is hanged ( as if like a deadlock situation). The conversion is working perfectly and pdf generated is in expacted format. This scenario is happening when converting a merged Document. (I am preparing the merge document working on 'content.xml' and 'styles.xml') I am not facing this problem when converting non-merged documents as of now (Though they are simple documents of maxinmum 6-10 pages) Thanks Bhaskar
Created attachment 46729 [details] The source document (.odt)
Created attachment 46730 [details] The converted pdf document
I assume that you do it from a remote application, right? Did you implement your own scheduler for incoming requests. Otherwise threading problems are likely. You should also use XCloseable.close(...) (query for it at the document) instead of disposing. Maybe you can attach a short example program showing your problem.
Thanks for reply I am running my own scheduler. I have identified the problem. It is with the 'content.xml' we have generated. It was having more than two styles with same style-name. I had fixed it and now its working fine. But one thing i cant understand is why it is converting properly and then hung at the time of releasing?? It is not throwing any error. It just hungs up? I have even tried with 'XCloseable.close(). Still same scenario with corrupt 'content.xml' Thanks, Bhaskar
jsc -> tl: it seems to be a writer problem with merged documents. Can you please check it or reassign it to the right developer
Target changed to 2.x
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".