Hi,

could you verify if the HttpClient is packed in your extension?
I just want to make sure that the class HttpClient is available when your extension is registered in OpenOffice.org.
To verify this:
Go to the file view of your project, open the dist folder and expand the <YourExtension>.oxt file. Inside, there should be an "external_jars" folder where all additional jars are packed that you use in your extension. If you do not find any jars there or if the jar that should contain HttpClient is missing I'd like to see your project if that's possible.

Regards, Steffen

Stephan Bergmann wrote:
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to