On 10/07/08 10:08, Vinzzz wrote:
That's part of my problem, i haven't any kind of error or exception thrown.
Openoffice just closed with a message that informs me that the document will
be rescued.
What is the stack trace and where can i find it ? maybe i'll find something
there...
The easiest might be to wrap the complete body of your dispatch method in
try {
...
} catch (java.lang.Error e) {
e.printStackTrace();
throw e;
} catch (java.lang.RuntimeException e) {
e.printStackTrace();
throw e;
}
(and test on Linux, not Windows, so you see the resulting stderr output).
-Stephan
Stephan Bergmann wrote:
On 10/06/08 23:53, Vinzzz wrote:
Hi,
I try to launch a web services from an openoffice add-on. I am using
netbeans 6.1 on Windows XP platform (i Try on linux and got the same
error).
i have the code below, using the package org.apache.commons.httpclient.*
:
public void dispatch( com.sun.star.util.URL aURL,
com.sun.star.beans.PropertyValue[] aArguments
)
{
if ( aURL.Protocol.compareTo("com.xxx.xxx:") == 0 )
{
if ( aURL.Path.compareTo("getXXX") == 0 )
{
HttpClient client = new HttpClient();
....
When I try the add-on on debug mode, it crashes when he tries to create
the
new HttpClient.
What do you mean with "crash?" Any Java Exception/Error being thrown?
If so, what is the Exception/Error type, message, stack trace?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]