Re: [api-dev] [code snippet] Simple wrapper for uno-services

2005-06-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, integrated into the snippet collection here: http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperForUno_services.snip but doesn't it more belong to the office section? Tom Christoph Lutz schrieb: | here is a simple

[api-dev] Exported Interface of Selection

2005-06-13 Thread Liao Yu
Hi, When I tried to query an XTextRange interface from an any- type Selection returned by XModel.getCurrentSelection(), I always got a null pointer. I also tried other interfaces such as XText, but none of them worked. So I've been wondering if I could query Interfaces from the Selection via

Re: [api-dev] Exported Interface of Selection

2005-06-13 Thread Mathias Bauer
Liao Yu wrote: Hi, When I tried to query an XTextRange interface from an any- type Selection returned by XModel.getCurrentSelection(), I always got a null pointer. I also tried other interfaces such as XText, but none of them worked. So I've been wondering if I could query Interfaces from

Re: [api-dev] [code snippet] Simple wrapper for uno-services

2005-06-13 Thread Paolo Mantovani
Hi Christoph, Alle 09:28, lunedì 13 giugno 2005, Christoph Lutz ha scritto: dev@api.openoffice.org schrieb am 13.06.05 08:21:35: integrated into the snippet collection here: http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperFo rUno_services.snip but doesn't it more

Re: [api-dev] [code snippet] Simple wrapper for uno-services

2005-06-13 Thread Jürgen Schmidt
Hi Christoph, this kind of wrapper are maybe useful for a specific language but not in general and they provide only a statical snapshot of an UNO object. You have to adapt your wrapper every time the object will change. But of course this shouldn't happen to often. But the wrapper has always

Re: [api-dev] Exported Interface of Selection

2005-06-13 Thread Liao Yu
Hi Stephan, mmm ... XModel is no XSelectionSupplier and so won't have a current Selection. From the XModel you can get the currentController and this will support a XSelectionSupplier ... pseudo code might be Actually I got XModel.getCurrentSelection() from P389 and P391 of Developer's Guide,

[api-dev] XComponentLoader returns null (JAVA)

2005-06-14 Thread Andreas Bröker
Hello, I use the XComponentLoader interface in order to load a SWriter document. But sometimes the returned XComponent reference is null. The documentation wrotes that a null reference will be returned if the loading process fails. But what can cause such a failed loading process ? Thanks for

[api-dev] Crash during document closing (Java)

2005-06-14 Thread Andreas Bröker
Hello, we integrate the Writer Component into a SWT application. After we execute some Java API calls and try to close the document OpenOffice.org (1.9.104) will crash. I have already send a crash report. How can this happen ? Best regards Andreas

[api-dev] Arranging a course on OOo development

2005-06-14 Thread Davide Dozza
Hi all, as the company I'm working on is going to strongly develop on OpenOffice.org, I have to arrange a course for our developers. At the end they must be able: - to develop in C++ and Java inside OOo in order to integrate new features or modules - to be confortable with UNO services and to

Re: [api-dev] XComponentLoader returns null (JAVA)

2005-06-14 Thread Mathias Bauer
Andreas Bröker wrote: Hello, I use the XComponentLoader interface in order to load a SWriter document. But sometimes the returned XComponent reference is null. The documentation wrotes that a null reference will be returned if the loading process fails. But what can cause such a failed

Re: [api-dev] Crash during document closing (Java)

2005-06-14 Thread Mathias Bauer
Andreas Bröker wrote: Hello, we integrate the Writer Component into a SWT application. After we execute some Java API calls and try to close the document OpenOffice.org (1.9.104) will crash. I have already send a crash report. I'm afraid that this information is too unspecific. Do you have

Re: [api-dev] Sequence of Texttables

2005-06-14 Thread Oliver Specht
Martin Thoma wrote: Hello! I have a text-document which contains some tables: Table1 (Named MyTable) Table2 (Named My 2nd Table) I copy+paste (executeDispatch) Table1 some times into the document: Table1 (Named MyTable) NewTable (Named Table 4) NewTable (Named Table 5) NewTable (Named Table 6)

Re: [api-dev] Crash during document closing (Java)

2005-06-14 Thread Sevastian `seva` Foglia
Andreas Bröker wrote: Hello, we integrate the Writer Component into a SWT application. After we execute some Java API calls and try to close the document OpenOffice.org (1.9.104) will crash. I have already send a crash report. How can this happen ? Best regards Andreas I have same

Re: [api-dev] Crash during document closing (Java)

2005-06-14 Thread Mathias Bauer
Andreas Bröker wrote: Hello Mathias, yes - i have entered my mail address. Hm, I couldn't find any report with [EMAIL PROTECTED] in the report database. Is that the address you gave in the report? And when did you send it? Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application

RE: [api-dev] Crash during document closing (Java)

2005-06-14 Thread Andreas Bröker
Hello Mathias, yes - the mail is correct. I have send the report at 13:30. I have produced the crash again and here is a report: ?xml version=1.0 encoding=UTF-8? !DOCTYPE errormail:errormail PUBLIC -//OpenOffice.org//DTD ErrorMail 1.0//EN errormail.dtd errormail:errormail

Re: [api-dev] Sequence of Texttables

2005-06-14 Thread Andrew Douglas Pitonyak
Martin Thoma wrote: Hello! I have a text-document which contains some tables: Table1 (Named MyTable) Table2 (Named My 2nd Table) I copy+paste (executeDispatch) Table1 some times into the document: Table1 (Named MyTable) NewTable (Named Table 4) NewTable (Named Table 5) NewTable (Named Table

Re: [api-dev] Sequence of Texttables

2005-06-15 Thread sos
At 14:02 14/06/05, you wrote: Martin Thoma wrote: Hello! I have a text-document which contains some tables: Table1 (Named MyTable) Table2 (Named My 2nd Table) I copy+paste (executeDispatch) Table1 some times into the document: Table1 (Named MyTable) NewTable (Named Table 4) NewTable (Named

[api-dev] Help with loadComponentFromURL

2005-06-15 Thread David Dankwerth
Hi I have a little problem with loadComponentFromURL. I am running openoffice on server A listening on port 8100, the java client running on machine B connects to the openoffice server, no problem there (following the FirstConnection example) Now I want to load a file from the Client hard-disk.

[api-dev] Problems using SDK 2.0 with C++

2005-06-15 Thread Martin Thoma
Hello! I want to use SDK2.0 on Windows with VC++. I have installed OO Version 1.9.104 and SDK 1.9.91, which seems to me the latest versions. I generated headers with: cppumaker -BUCR -O [Targetpath to headers] [Path of types.rdb]. I get a lot of compiler-errors, I attached 2 of them. I defined

Re: [api-dev] Problems using SDK 2.0 with C++

2005-06-15 Thread Stephan Bergmann
Martin Thoma wrote: Hello! I want to use SDK2.0 on Windows with VC++. I have installed OO Version 1.9.104 and SDK 1.9.91, which seems to me the latest versions. I generated headers with: cppumaker -BUCR -O [Targetpath to headers] [Path of types.rdb]. I get a lot of compiler-errors, I

AW: [api-dev] Problems using SDK 2.0 with C++

2005-06-15 Thread Martin Thoma
Hi Stephan, In both cases, this is relatively new code, which might not yet have been there in OOo 1.1.x. And, in both cases, your specific VC++ version seems to be too old to accept the code. thanks for your reply! I come up with some serious problems using C++ and OO with Version

Re: [api-dev] Help with loadComponentFromURL

2005-06-15 Thread David Dankwerth
Hi I have managed to sortout the loadComponenetFromURL by using the Tomcat that is running on machine B (where the java client is running) now i am facing the problem of doing xstorable.storeToURL Again, the same problem of loadComponenet applies, what sort of URL can i give in order to upload

[api-dev] Apologies and Broken StarBasic guide?

2005-06-15 Thread Ennio-Sr
Hi all, after some further reading I realized being completely off-track when I sent a few messages relating to Paolo Mantovani's original post about the service cssu.TextSearch; these may have annoyed some of you as well as spoiled the OP's query. Therefore I do apologize for my behaviour,

[api-dev] [code snippet] Simple natural sort algorithm

2005-06-15 Thread Paolo Mantovani
Hi all, During a recent job I have had to develop some functions for string sorting. Some of these contains a very simple implementation of the natural sort algorithm. This implementation uses the service css.util.TextSearch to perform special string comparisions. Although the code works well

Re: AW: [api-dev] Problems using SDK 2.0 with C++

2005-06-16 Thread Stephan Bergmann
Martin Thoma wrote: Hi Stephan, In both cases, this is relatively new code, which might not yet have been there in OOo 1.1.x. And, in both cases, your specific VC++ version seems to be too old to accept the code. thanks for your reply! I come up with some serious problems using C++ and OO

AW: AW: [api-dev] Problems using SDK 2.0 with C++

2005-06-16 Thread Martin Thoma
thanks for your reply! I come up with some serious problems using C++ and OO with Version 1.1.3/1.1.4 (if I've found out more I will post a new thread). I thought changing to the 2.0Beta perhaps would solve the problems. So what exactly do you suggest? Waiting till 2.0 is stable? I'm

Re: [api-dev] Problems using SDK 2.0 with C++

2005-06-16 Thread Joerg Barfurth
Hi Martin, BTW: Please teach your mailer to use 'Re:' for reply sunjects rather than 'AW:', which other mailers don't recognize. Martin Thoma wrote: stable by now, and I would not expect the code you stumble over to change until 2.0 final. I still think your tool chain to build OOo uses

Re: [api-dev] How to remove a specific annotation?

2005-06-16 Thread Stephan Wunderlich
Hi Yu, Thus the annotition will gone with the text. Can we do the same( only without remove the text) with OOo API? I've tried with quering XEnumerationAccess interface from XModel.getCurrentSelection(), as shown in the following code, but failed at the first place: the selection doesn't

[api-dev] Problem with xstorable.storeToURL

2005-06-16 Thread David Dankwerth
Hi I am using xstoreable.storeToURL from the api and getting com.sun.star.io.IOException When i am using OpenOffice UI to store to the URL it works fine. I have added all the details + log of Tomcat's Webdav servlet that shows differences in the Http Request sent from OpenOffice UI and the Http

Re: [api-dev] How to remove a specific annotation?

2005-06-16 Thread Liao Yu
Thank you, Stephan. I will try it. Regards, Yu - Hi Yu, Thus the annotition will gone with the text. Can we do the same( only without remove the text) with OOo API? I've tried with quering XEnumerationAccess interface from

Re: [api-dev] Problem with xstorable.storeToURL

2005-06-17 Thread Mathias Bauer
David Dankwerth wrote: Hi I am using xstoreable.storeToURL from the api and getting com.sun.star.io.IOException When i am using OpenOffice UI to store to the URL it works fine. I have added all the details + log of Tomcat's Webdav servlet that shows differences in the Http Request

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Paolo Mantovani
Hi Kohei, Alle 14:55, gioved 16 giugno 2005, Kohei Yoshida ha scritto: [...] Hi Paolo, You, or perhaps someone else, may be interested in this hack of mine: http://kohei.us/ooo/nsort/ which introduces a native natural sort algorithm in Calc. Great ! :-) The work was completed (with

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Mantovani schrieb: | Hi all, | | During a recent job I have had to develop some functions for string sorting. | Some of these contains a very simple implementation of the natural sort | algorithm. [...] Integrated into snippet collection and

Re: [api-dev] [code snippet] Simple wrapper for uno-services

2005-06-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Lutz schrieb: | dev@api.openoffice.org schrieb am 13.06.05 08:21:35: | |integrated into the snippet collection here: |http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperForUno_services.snip |but doesn't it more belong to

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Paolo Mantovani
Hi Tom, Alle 10:35, venerd 17 giugno 2005, Tom Schindl ha scritto: [...] Integrated into snippet collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.SimpleNaturalSort Algorithm.snip Thank you :-) Paolo M.

[api-dev] How stable is the Java API ?

2005-06-17 Thread =?iso-8859-1?Q?Andreas_Br=F6ker?=
Hello, we uses the Java API in order to modify text documents. We execute a lot of calls with the API. After 1000 (sometimes more - sometimes less) calls OpenOffice.org (1.9.104) will crash. How stable is the Java API ? Is it not a good idea in order to execute such a high number of calls.

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread Martin Thoma
Did you experience this in a Version 1.1.x as well? I got similar problems with the C++ API using 1.1.3/1.1.4: After executing a lot of API calls OO crashes (tries to send an error-report). The code-line where the crashe is happening is always different. I could improve the behaviour a little

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread =?iso-8859-1?Q?Andreas_Br=F6ker?=
Hello Martin, yes - with OpenOffice.org 1.1.4 we have the same problems. Best Regards Andreas -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED] Sent: Friday, June 17, 2005 3:28 PM To: dev@api.openoffice.org Subject: RE: [api-dev] How stable is the Java API ? Did

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread Martin Thoma
Hi Andreas, then I think the profis have to start ;-) Could you provide a simple code which crashes after a lot of executions? I weren't able to do so, but I could not spend much time on it in the past. Perhaps, if we find a peace of code that crashes in Java and C++ after executing a lot of

Re: [api-dev] How stable is the Java API ?

2005-06-17 Thread Cristian Fonti
Sorry for the idiot question, but how can i call the garbage collection via Java??? Best Regars Cristian Andreas Brker ha scritto: Hello, if we call the Garbage Collection after every API call OpenOffice.org stays longer alive. Is it possible that the API produces too much references ?

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread =?iso-8859-1?Q?Andreas_Br=F6ker?=
Hello Stephan, we have made several tests. If we run the code without the the GC we come up to 1000 calls - with GC we come up to 15000 calls and more. No - we have only one thread. What can we do ? Best regards Andreas -Original Message- From: Stephan Bergmann [mailto:[EMAIL

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread KINDLER Jurgen
Since Andreas pointed out that OOo lives LONGER, when calling System.gc() after each call, I would rather suspect that the frequent cleanup prevents zombie objects to walk around in memory with deadly foam dropping out of their mouth ... ;-) (Garbage rulez!) Maybe the explicit disposal of

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread =?iso-8859-1?Q?Andreas_Br=F6ker?=
Hello Cristian, use System.gc(). Regards Andreas -Original Message-From: Cristian Fonti [mailto:[EMAIL PROTECTED]Sent: Friday, June 17, 2005 4:01 PMTo: dev@api.openoffice.orgSubject: Re: [api-dev] How stable is the Java API ?Sorry for the idiot question, but how can

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread Martin Thoma
@Andreas: we have made a simple test programm that uses the XCellRange interface of an XTextTable in order to return a cell range in a loop. That is enough in order to crash OpenOffice.org. Could you send me the code? I'll try it in C++. @Jrgen Maybe the explicit disposal of objects as

Re: [api-dev] How stable is the Java API ?

2005-06-17 Thread Stephan Bergmann
Andreas Brker wrote: Hello Martin, we have made a simple test programm that uses the XCellRange interface of an XTextTable in order to return a cell range in a loop. That is enough in order to crash OpenOffice.org. Please send me the code, or, preferably, open an issue and attach the code

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread =?iso-8859-1?Q?Andreas_Br=F6ker?=
Hello Stephan, my login does not work properly. Sorry. Here is my code snippet: XCellRange xCellRange = null; for(int i=0; i10; i++) { if(xCellRange == null) xCellRange = (XCellRange)UnoRuntime.queryInterface(XCellRange.class, xTextTable); XCellRange newXCellRange =

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Emanuele
Hi Paolo (and all), Paolo Mantovani wrote: Finally, I thought to submit the thing as a code-snippet, in the hope it will be useful to someone. I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace

RE: [api-dev] How stable is the Java API ?

2005-06-17 Thread Jesse Alexander (KBSA 21)
sounds like a memory leak... Have you tried to give it a look using a profiler? hth Alexander -Original Message- From: Andreas Brker [mailto:[EMAIL PROTECTED] Sent: Friday, June 17, 2005 3:04 PM To: 'dev@api.openoffice.org' Subject: [api-dev] How stable is the Java API ? Hello, we

[api-dev] NoClassDefFoundError: WrappedTargetException

2005-06-17 Thread jackpark
A quick search of the archives suggests that nobody asked before, that the class com.sun.star.lang.WrappedTargetException is not found when booting an implementation of officebean.jar along the lines of the example applet. All the jars in the sdk 1.9.109 were scanned and no such classpath was

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-17 Thread Ennio-Sr
* Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the line: .searchFlag = [EMAIL PROTECTED]

[api-dev] [EMAIL PROTECTED] GUIDE: important things to know about this mailing list

2005-06-17 Thread Michael Hoennig
Dear OpenOffice.org community, This is the monthly reminder of important things to know about the dev@api.openoffice.org mailing list. We, the project leads of the OOo API project, would like to give you some general information to help you with your questions. ***

AW: [api-dev] How stable is the Java API ?

2005-06-18 Thread Martin Thoma
Hi all, I can confirm that this C++-code produces crashes too: ReferenceXCellRange rCellRange(rTextTable, UNO_QUERY); for(int i = 0; i 10; i++) { ReferenceXCellRange rNewCellRange = rCellRange-getCellRangeByPosition(1,1,2,2); } (Tested with OO1.1.4 on WindXP on a new Writers-Document

RE: [api-dev] How stable is the Java API ?

2005-06-18 Thread Martin Thoma
Hi all, I can confirm that this C++-code produces crashes too: ReferenceXCellRange rCellRange(rTextTable, UNO_QUERY); for(int i = 0; i 10; i++) { ReferenceXCellRange rNewCellRange = rCellRange-getCellRangeByPosition(1,1,2,2); } (Tested with OO1.1.4 on WindXP on a new Writers-Document

Re: [api-dev] Apologies and Broken StarBasic guide?

2005-06-18 Thread Emanuele
Hi Ennio-Sr, Ennio-Sr wrote: I started reading the Star Basic Guide and tried to run one of the examples I found there; but I'm under the impression to have picked the wrong one for a start, as there is no way to make it run! This example was taken from p. 102 of the Italian version: [CUT]

Re: [api-dev] Apologies and Broken StarBasic guide?

2005-06-18 Thread Ennio-Sr
* Emanuele [EMAIL PROTECTED] [180605, 22:25]: Hi Ennio-Sr, Ennio-Sr wrote: [big cut: see Off-List msg] P.S. Thank you for help on the other topic, now the code means something also for me! Glad to have been of some help :-) Thanks for your suggestions too. Regards, Ennio. --

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emanuele schrieb: | Hi Paolo (and all), [...] | | I tried your snippet, but I receive an error every time I start the | macros. :-( | In particular the problem is located in the function RegExpStrReplace | at the line: | | .searchFlag = [EMAIL

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Paolo Mantovani
Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Ennio-Sr
* Paolo Mantovani [EMAIL PROTECTED] [190605, 16:41]: Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), [...] In particular the problem is located in the function RegExpStrReplace

Re: [api-dev] Apologies and Broken StarBasic guide?

2005-06-19 Thread Paolo Mantovani
Hi Ennio Alle 00:15, gioved 16 giugno 2005, Ennio-Sr ha scritto: [...] Concerning the second part of the captioned subject, I started reading the Star Basic Guide and tried to run one of the examples I found there; but I'm under the impression to have picked the wrong one for a start, as

Re: [api-dev] [code snippet] Simple natural sort algorithm

2005-06-19 Thread Emanuele
Not a good advice, because the XML code erroneously used from Emanuele contains also a lot of other offending code like escaped chars (apos, quot, # etc. etc.) In truth all the other things were ok, so I didn't realize immediately my error, excuse me! XML code-snippets are not conceived

Re: [api-dev] Apologies and Broken StarBasic guide?

2005-06-19 Thread Marc Santhoff
Am Sonntag, den 19.06.2005, 18:19 +0200 schrieb Paolo Mantovani: Hi Ennio Alle 00:15, gioved 16 giugno 2005, Ennio-Sr ha scritto: [...] Concerning the second part of the captioned subject, I started reading the Star Basic Guide and tried to run one of the examples I found there; but

Re: [api-dev] Apologies and Broken StarBasic guide?

2005-06-19 Thread Ennio-Sr
* Paolo Mantovani [EMAIL PROTECTED] [190605, 18:19]: Hi Ennio Alle 00:15, gioved 16 giugno 2005, Ennio-Sr ha scritto: [...] Concerning the second part of the captioned subject, I started reading the Star Basic Guide and tried to run one of the [...] Thanks for your suggestions. I'll

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread KINDLER Jurgen
Where can I find the UNO-objects that need explicit disposal? To my understanding anything that implements com.sun.star.uno.XInterface for example. Even though the implementation is said to be depending on the language binding, the concept differs significently from the normal Java model.

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Martin Thoma
Where can I find the UNO-objects that need explicit disposal? To my understanding anything that implements com.sun.star.uno.XInterface for example. For me using C++: I thought that ReferenceXInterface would take care of all memory-things and release objects that aren't used anymore?! I

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Andreas Bröker
Hello Stephan, I have filed an issue : 50955. Regards Andreas -Original Message- From: Andreas Bröker [mailto:[EMAIL PROTECTED] Sent: Friday, June 17, 2005 5:22 PM To: 'dev@api.openoffice.org' Subject: RE: [api-dev] How stable is the Java API ? Hello Stephan, my login does

Re: [api-dev] How stable is the Java API ?

2005-06-20 Thread Mathias Bauer
Andreas Bröker wrote: Hello Martin, we have made a simple test programm that uses the XCellRange interface of an XTextTable in order to return a cell range in a loop. That is enough in order to crash OpenOffice.org. While this is something that should be investigated I doubt that you can

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Andreas Bröker
Hello Mathias, the issue is 50955. Best regards Andreas -Original Message- From: Mathias Bauer [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 9:22 AM To: dev@api.openoffice.org Subject: Re: [api-dev] How stable is the Java API ? Andreas Bröker wrote: Hello Martin,

Re: [api-dev] Problem with xstorable.storeToURL

2005-06-20 Thread David Dankwerth
Hi The location is not password protected, I thought the error may happen because I am accessing the root context, however when i added a webdav context it still failed. From tomcat log, the difference between the UI and via the API can be noted on the first OPTIONS http request : from OO UI is

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Andreas Bröker
Hello, have anybody an idea for a workaround. Best regards Andreas -Original Message- From: Andreas Bröker [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 9:38 AM To: 'dev@api.openoffice.org' Subject: RE: [api-dev] How stable is the Java API ? Hello Mathias, the

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Martin Thoma
Hi Andreas, my workaround is to use the ViewCursor directly instead. It's not very nice, but it seems to work better, perhaps it might help you as well. Martin -Original Message- From: Andreas Bröker [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 12:24 PM To:

Re: [api-dev] How stable is the Java API ?

2005-06-20 Thread Sven Zenker
Hello everybody, we have stability problems, too, although not related to a large number of API calls but rather to frequent load/print/store operations via the Java API on a headless OOo running with xvfb. OOo crashes approx. every 10-50 load/print/store cycles, with a large variation, and

Re: [api-dev] NoClassDefFoundError: WrappedTargetException

2005-06-20 Thread Jürgen Schmidt
The WrappedTargetException comes from the ridl.jar which contains common UNO API's. unoil.jar contains office specific API's and the officebean will use both. Juergen [EMAIL PROTECTED] wrote: A quick search of the archives suggests that nobody asked before, that the class

RE: [api-dev] How stable is the Java API ?

2005-06-20 Thread Herter, S.
Yes. We use a pool architecture to allow multiple threads to interact with OOo. The pool insures that only one thread at a time talks to one instance of OOo at a time. We modeld it off of the JDBC connection architecture but instead of a database connection, you get an OOo connection.

Re: [api-dev] How stable is the Java API ?

2005-06-20 Thread Mathias Bauer
Andreas Bröker wrote: Hello, have anybody an idea for a workaround. Sorry, but why do you need a workaround for an artificial problem that doesn't exist in real life code? I doubt that you ever will have the loop you posted as a part of a real program. Best regards, Mathias -- Mathias

Re: [api-dev] How stable is the Java API ?

2005-06-20 Thread Mathias Bauer
Martin Thoma wrote: Hi Sven, if you can break it down to some simple code that crashes OO I suggest to add it to the issue Andreas has opened: http://qa.openoffice.org/issues/show_bug.cgi?id=50955 Perhaps a simple load/print/store-procedure called in a loop will do it. No, please keep

Re: [api-dev] How stable is the Java API ?

2005-06-20 Thread Mathias Bauer
Herter, S. wrote: With 1.1.0 - 1.1.3 under Windows we have noticed a memory leak that occurs during repeated load/print and load/export to PDF. We got around it by shutting down OOo every 250 uses through the API and then starting it again. If we don't shut it down we can watch memory

RE: [api-dev] How stable is the Java API ?

2005-06-21 Thread Martin Thoma
Andreas Bröker wrote: Hello, have anybody an idea for a workaround. Sorry, but why do you need a workaround for an artificial problem that doesn't exist in real life code? I doubt that you ever will have the loop you posted as a part of a real program. Of course this artificial problem

Re: [api-dev] How stable is the Java API ?

2005-06-21 Thread Stephan Bergmann
Mathias Bauer wrote: Martin Thoma wrote: Hi Sven, if you can break it down to some simple code that crashes OO I suggest to add it to the issue Andreas has opened: http://qa.openoffice.org/issues/show_bug.cgi?id=50955 Perhaps a simple load/print/store-procedure called in a loop will do it.

Re: [api-dev] How stable is the Java API ?

2005-06-21 Thread Jürgen Schmidt
Hi, please forget my earlier posting, it was to early in the morning and i have run a wrong test. But after discussion with Stephan who has investigated in this problem yesterday, it is clear that it is an implementation problem and no general UNO or API problem (see comments in the issue).

RE: [api-dev] How stable is the Java API ?

2005-06-21 Thread Andreas Bröker
Hello Mathias, the posted code is only an example in order to reproduce the OpenOffice.org crash with a great many of API calls. In real life code with also a huge amount of API calls. But i think it is not a good idea to write down here 1 LOC. Therefore i asked not for workaround not

Re: [api-dev] How stable is the Java API ?

2005-06-21 Thread Stephan Bergmann
Andreas Bröker wrote: Hello Mathias, the posted code is only an example in order to reproduce the OpenOffice.org crash with a great many of API calls. In real life code with also a huge amount of API calls. But i think it is not a good idea to write down here 1 LOC. Therefore i asked not

Re: [api-dev] Problem with xstorable.storeToURL

2005-06-21 Thread David Dankwerth
Mathias I have managed to solve the problem by upgrading to OO1.9.109 and the 2.0 SDK However, it worked only when OO was running on the same server as my tomcat I will investigate further, create some sample code and open a new thread for that problem. Many thanks David D Mathias Bauer wrote:

Re: [api-dev] How stable is the Java API ?

2005-06-21 Thread Sven Zenker
Mathias Bauer wrote: Herter, S. wrote: With 1.1.0 - 1.1.3 under Windows we have noticed a memory leak that occurs during repeated load/print and load/export to PDF. We got around it by shutting down OOo every 250 uses through the API and then starting it again. If we don't shut it down

Re: [api-dev] How stable is the Java API ?

2005-06-21 Thread Mathias Bauer
Martin Thoma wrote: Andreas Bröker wrote: Hello, have anybody an idea for a workaround. Sorry, but why do you need a workaround for an artificial problem that doesn't exist in real life code? I doubt that you ever will have the loop you posted as a part of a real program. Of course

[api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-06-21 Thread David Dankwerth
Hi The attached sample java program does the following: 1. Connect to a remote open office 2. Ask open office to loadComponentFromURL using tomcat and webdav 3. Ask open office to storeToURL using the writer_export_PDF filter, saving the doc back to tomcat with the original name and add a

RE: [api-dev] How stable is the Java API ?

2005-06-21 Thread Martin Thoma
That wasn't clear from your example. I doubt that there is any real life use case where you would retrieve *the same* interface of *the same* object several times in a loop. Sorry, from the posts earlier in this thread I thought that was clear. But without knowing where this bug hits you

Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-06-21 Thread Mathias Bauer
David Dankwerth wrote: Hi The attached sample java program does the following: 1. Connect to a remote open office 2. Ask open office to loadComponentFromURL using tomcat and webdav 3. Ask open office to storeToURL using the writer_export_PDF filter, saving the doc back to tomcat

[api-dev] Calc Outline and cell address

2005-06-23 Thread Laurent Godard
Hi all, i play with calc Outline and experiences some troubles 1- on a sheet, using showDetail and hideDetail hideDetail works even if only the adresse one cell of the range is used as argument showDetail needs the whole range address though Is it normal ? How can i use the showDetail with

[api-dev] [code snippet] erase-create_range_name

2005-06-23 Thread Ennio-Sr
This is a new version (2.0) of my 'First snippet' as the previous one didn't always work as it should. I've tested it many times and it seems to work well in all possible cases I could imagine. I hope it will help some newbies like myself to better understand how some basic things work in

Re: [api-dev] Sequence of Texttables

2005-06-25 Thread Christian Junker
In addition to what Andrew provided here, there is yet another way, which is probably not that good but can be taken into account: Using the viewcursor you can go from the beginning to the end of the document regularly checking if the property TextTable of the viewcursor is void

[api-dev] BASIC - Parameter substitution in a SUB

2005-06-26 Thread Ennio-Sr
Hi all, I'm testing parameter substitution in a SUB but am getting a partial result only. The original macro works well without parameter substitution being attempted: 1. if named-range (last_bal) exists erase it 2. if last row cell (in the balances column) is zero, go up one cell and add

Re: [api-dev] Calc Outline and cell address

2005-06-26 Thread Andrew Douglas Pitonyak
I also was unable to find anything, and I did search and inspect... Laurent Godard wrote: Hi all, i play with calc Outline and experiences some troubles 1- on a sheet, using showDetail and hideDetail hideDetail works even if only the adresse one cell of the range is used as argument

Re: [api-dev] BASIC - Parameter substitution in a SUB

2005-06-26 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [260605, 22:18]: Hi all, I'm testing parameter substitution in a SUB but am getting a partial result only. The original macro works well without parameter substitution being attempted: 1. if named-range (last_bal) exists erase it 2. if last row cell (in the

[api-dev] Broken links in API:Basics and Dialogs?

2005-07-01 Thread Ennio-Sr
Hi all! On page 45 (of 155) of the captioned doc. there is a link to *8. Spreadsheet Documents* which does not seem to be available. Can somebody suggest a substitute URL? Regards, Ennio. -- [Perche' usare Win$ozz (dico io) se ...anche uno sciocco sa farlo. \\?// Fa' qualche cosa di

Re: [api-dev] Broken links in API:Basics and Dialogs?

2005-07-01 Thread Christian Junker
Can confirm this. Would you start an issue, please? If you don't want to register for Issuezilla, just let me know and I will write a report for this.2005/7/1, Ennio-Sr [EMAIL PROTECTED]: Hi all!On page 45 (of 155) of the captioned doc. there is a link to *8.Spreadsheet Documents* which does not

Re: [api-dev] Re: [users] Problems regarding scroll bars

2005-07-01 Thread Christian Junker
quote[...]Horizontal scroll bars thru tools/options. /quote What do you exactly mean?? Which scroll bars? It seems to me that you want to use persistent menu/toolbar configurations for a specific file. While this is supported in OOo 1.1.x it's not in OOo 2.0 as far as I know. Please provide much

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-07-01 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

[Fwd: Re: [api-dev] Calc Outline and cell address]

2005-07-02 Thread G. Jasper
Andrew Douglas Pitonyak wrote: I also was unable to find anything, and I did search and inspect... Laurent Godard wrote: Hi all, i play with calc Outline and experiences some troubles 1- on a sheet, using showDetail and hideDetail hideDetail works even if only the adresse one cell of the

Re: [Fwd: Re: [api-dev] Calc Outline and cell address]

2005-07-03 Thread Laurent Godard
Hi Gerrit Following this thread in the archive I think your question has not yet been answered. thanks for tacking care For now I can only help with part 2 of your problem with the following code: Yes this is a way i did it Nevertheless i would have expect a method of the cell object

Re: [api-dev] [code snippet] erase-create_range_name

2005-07-04 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ennio-Sr schrieb: | * Ennio-Sr [EMAIL PROTECTED] [240605, 02:04]: | |This is a new version (2.0) of my 'First snippet' as the previous one |didn't always work as it should. I've tested it many times and it seems |to work well in all possible cases I

<    1   2   3   4   5   6   7   8   9   10   >