Finally I found the cause of the problem : when OO does loadComponentFromURL of a WordML (xml) file, if the property FilterName is not set, no error is sent when reading the document, but on saving in RTF , StoreToURL displays "IOException".
I put the property filterName to "swriter: writer_MS_Word_2003_XML" on reading, and the document can then be saved safely. Also, the curious thing is that this does not happen every time. Still, I suggest that there should be a way to get the exception error code. I will try to build OO with debug true, but the sources seems big enough that recompilation is no easy task. -----Original Message----- From: Christian Junker [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 10:06 AM To: [email protected] Subject: Re: [api-dev] How to debug API usage Hi Yves, as far as I know of, there is no easy way to switch debugging on, because in the case you got your OpenOffice as a binary package it is very likely that it has been built without debugging enabled. Now, the hard way would be to build OOo yourself and use DEBUG TRUE for the right modules. But that said I am not informed how things have developed recently, maybe it is even possible with 2.x to get all output logged somewhere. 2006/6/6, Bénigot Yves <[EMAIL PROTECTED]>: > > > > > I use open office developper release 2.0.3 on Linux with Java and UNO. > Openoffice is started as a server under root and accessed via jboss. > > When I try to use storeToURL() to an RTF file I get > "com.sun.star.task.ErrorCodeIOException", although the URL seems > correct (its a file url). Also running a test program under different > conditions (eclipse client on Windows, to a Linux server, instead of > using the API as a jboss backend) works. > > -> So I need to get more information about what goes wrong in my > -> precise > case. > > Is there a way to get a trace of what happens on the openoffice side, > to understand why the file write fails ? Is there a journal file for > errors ? or a debug switch ? > > Yves Benigot -- Best Regards Christian Junker --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
