Issue 79541 - XComponent:dispose() method is hung
Summary: XComponent:dispose() method is hung
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: Other Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 15:16 UTC by bhaskarnaidup
Modified: 2017-05-20 11:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The source document (.odt) (46.60 KB, application/vnd.oasis.opendocument.text)
2007-07-12 15:18 UTC, bhaskarnaidup
no flags Details
The converted pdf document (170.47 KB, application/pdf)
2007-07-12 15:19 UTC, bhaskarnaidup
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bhaskarnaidup 2007-07-12 15:16:30 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
Comment 1 bhaskarnaidup 2007-07-12 15:18:14 UTC
Created attachment 46729 [details]
The source document (.odt)
Comment 2 bhaskarnaidup 2007-07-12 15:19:19 UTC
Created attachment 46730 [details]
The converted pdf document
Comment 3 jsc 2007-07-16 17:07:31 UTC
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.

Comment 4 bhaskarnaidup 2007-07-16 18:49:29 UTC
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
Comment 5 jsc 2007-07-17 07:39:40 UTC
jsc -> tl: it seems to be a writer problem with merged documents. Can you please
check it or reassign it to the right developer
Comment 6 Oliver Specht 2007-08-07 13:06:02 UTC
Target changed to 2.x
Comment 7 Martin Hollmichel 2007-11-09 17:28:04 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 8 Marcus 2017-05-20 11:27:28 UTC
Reset assigne to the default "issues@openoffice.apache.org".