Issue 38881 - PDF export of word doc throws error but writes PDF
Summary: PDF export of word doc throws error but writes PDF
Status: CLOSED DUPLICATE of issue 40445
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 680m62
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL: http://www.users.on.net/~fitzhood/pdf...
Keywords:
: 40156 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-12-13 06:37 UTC by mr_than
Modified: 2013-08-07 14:41 UTC (History)
2 users (show)

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


Attachments
Source word file - opens OK, PDF export error (486.00 KB, application/msword)
2004-12-13 06:38 UTC, mr_than
no flags Details
Produced PDF - even though error thrown (363.98 KB, application/pdf)
2004-12-13 06:38 UTC, mr_than
no flags Details
Reproduces PDF export error (67.50 KB, application/msword)
2005-01-06 17:15 UTC, d4manek
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mr_than 2004-12-13 06:37:09 UTC
I have several word docs which cause the same error when I attempt to export
them as PDF (either manually from the GUI or programmatically via Java UNO). In
either case an exception occurs and and error appears in OpenOffice : "Write
error. The file could not be written". There's plenty of free disk space and the
user running it has administrative privilages.

However, it seems the PDF file is actually created properly, even though the
error is thrown. The source file is then locked and isn't released until the
soffice.exe process is killed when running through the UNO bridge. OOo 1.1.3 and
1.1.4 RC1 both proces the files without error or problems (aside from recognised
spacing compatibility issues).

The exception raised from teh UNO bridge is as follows:
com.sun.star.task.ErrorCodeIOException: 
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at
com.sun.star.lib.uno.protocols.urp.Unmarshal.readExceptionValue(Unmarshal.java:464)
	at com.sun.star.lib.uno.protocols.urp.Unmarshal.readAnyValue(Unmarshal.java:400)
	at com.sun.star.lib.uno.protocols.urp.Unmarshal.readValue(Unmarshal.java:208)
	at com.sun.star.lib.uno.protocols.urp.urp.readReply(urp.java:190)
	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:312)
	at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:624)
	at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.invoke(java_remote_bridge.java:185)
	at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:170)
Comment 1 mr_than 2004-12-13 06:38:17 UTC
Created attachment 20456 [details]
Source word file - opens OK, PDF export error
Comment 2 mr_than 2004-12-13 06:38:56 UTC
Created attachment 20457 [details]
Produced PDF - even though error thrown
Comment 3 michael.ruess 2004-12-13 09:21:08 UTC
reassigned to HI.
Comment 4 nagashree 2004-12-13 09:40:13 UTC
Confirming the Issue
Comment 5 h.ilter 2004-12-13 11:18:45 UTC
HI->PL: Occurs also with 680m65_8850.
Comment 6 philipp.lohmann 2004-12-13 11:53:14 UTC
This rather seems to be a problem with either framework or filters ? Does it
occur with other export types, too ? At least the PDF export code in VCL does
not throw any exceptions, especially no API exceptions (IOException in this case ?)
Comment 7 mr_than 2004-12-14 06:22:02 UTC
Yes, it occurs when exporting to xhtml in m62 as well. Same error - file is
fully written and complete but error ("Write error. The file could not be written").

It saves as a sxw with no error - just the exporting is causing the error.
Comment 8 henrikjust 2004-12-15 10:06:15 UTC
This problem seems to occur under these circumstances
* For any document containing OLE objects
* For any filter called by File-Export (pdf, xhtml, and other filters - see eg. 
issue 24813)
Comment 9 henrikjust 2004-12-21 12:34:53 UTC
I cannot reproduce this issue with SRC680 m65, seems to be fixed.
Comment 10 d4manek 2005-01-06 17:14:29 UTC
I can reproduce it with SRC680 m65. Will attach ad_sponsor.doc.
Comment 11 d4manek 2005-01-06 17:15:54 UTC
Created attachment 21138 [details]
Reproduces PDF export error
Comment 12 Mathias_Bauer 2005-01-07 12:30:52 UTC
If it's still not fixed, it's worth a 2.0 target. Will investigate it later.
Comment 13 Mathias_Bauer 2005-01-12 13:54:41 UTC
*** Issue 40156 has been marked as a duplicate of this issue. ***
Comment 14 Mathias_Bauer 2005-01-13 17:29:16 UTC
.
Comment 15 Mathias_Bauer 2005-01-14 11:02:41 UTC
wrong state
Comment 16 Mathias_Bauer 2005-01-14 11:03:35 UTC
Same problem as in issue 40445 (->CWS MAV15)
Comment 17 Mathias_Bauer 2005-01-14 11:03:56 UTC
.

*** This issue has been marked as a duplicate of 40445 ***
Comment 18 michael.ruess 2005-04-28 08:00:37 UTC
Closing duplicate.