Apache OpenOffice (AOO) Bugzilla – Issue 35372
API: sfx.StandaloneDocumentInfo::com::sun::star::document::XStandaloneDocumentInfo
Last modified: 2013-02-24 21:09:45 UTC
while executing the following macro office crashes on Solaris. Please copy the attached bugdoc into /tmp folder. Sub Main cDoc = "file:///tmp/SfxStandaloneDocInfoObject.sdw" oObj = createUnoService("com.sun.star.document.StandaloneDocumentInfo") oObj.loadFromURL(cDoc) End Sub
Created attachment 18308 [details] please copy bigdoc in /tmp folder
on Linux and Windows the following exception was thrown: com.sun.star.task.ErrorCodeIOException
The behavior on Linux and Windows is correct, the StandaloneDocumentInfo does not support binary formats any longer. Of course it shouldn't crash on Solaris. This needs some investigation.
.
duplicate. *** This issue has been marked as a duplicate of 33960 ***
n->kso: You have written that this interface does work not with binary formats anymore.. This is not described in the IDL. Further the com.sun.star.task.ErrorCodeIOException is also not described in the IDL. Only a com::sun::star::io::IOException is valid. BTW: the crash is fixed in fwkbugfix03.
see message above.
KSO->CN: This bug is about the crash and therefore duplicate (and fixed meanwhile) and should be closed. If there are additional problems with documentation. please file another task for this. Andreas Schluens would be the right owner. Regarding the documentation issues: com.sun.star.task.ErrorCodeIOException is derived from css.io.IOException. Thus, it is no bug to throw ErrorCodeIOException. Anyway, better documentation would be very helpful. Especially it should be explained that not every document has a document info (that can be accessed using the StandAloneDocumentInfo service) and what exception will be thrown by loadFromURL() in this case.
for the documentation issue i37219 is written. The crash is fixed
close