Hi Joel

thanks for the advertise. The code can be viewed here:
http://softwarelivre.sapo.pt/otoo/browser , in the trunk directory. You also
could checkout the code with a svn client: svn://
svn.softwarelivre.sapo.pt/otoo/trunk . Hope someone could take a look.

didn't have time to have a look at it, but at first sight: how do you compile this? is this is part of a NetBeans Project? how is the manifest generated? You use the central registration class approach, this needs that the manifest has an entry for the central registration class and one containing each class with a component.

For example, if the [Your_Project]/nbproject/project-uno-properties contains [careless line breaks]


registration.classname=ar.com.arielconstenlahaile.openoffice.menuinterceptor.JobImplementation ar.com.arielconstenlahaile.openoffice.menuinterceptor.ProtocolHandlerImpl
central.registration.class=ar.com.arielconstenlahaile.openoffice.menuinterceptor.CentralRegistrationClass

the generated manifest looks like


Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b22 (Sun Microsystems Inc.)
UNO-Type-Path:
RegistrationClassName: ar.com.arielconstenlahaile.openoffice.menuinterceptor.CentralRegistrationClass
Class-Path:

Name: ar/com/arielconstenlahaile/openoffice/menuinterceptor/CentralRegistrationClass.class RegistrationClasses: ar.com.arielconstenlahaile.openoffice.menuinterceptor.JobImplementation ar.com.arielconstenlahaile.openoffice.menuinterceptor.ProtocolHandlerImpl



I comment this because, if you used NetBeans, your files look like you didn't use the plug-in wizards to generate the code, this has the disadvantage that components classes may not appear automatically in the project-uno-properties, and the generated manifest may not work to register the components in the JAR.

Also, in org/openoffice/sapo/summerbits/otoo/ItemProtocolHandlerImpl.java

    public void addStatusListener(XStatusListener arg0, URL arg1) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void removeStatusListener(XStatusListener arg0, URL arg1) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

OOo may not like this ("may"== didn't try).
If you don't want to implement an interface method, DO NOT throw an UnsupportedOperationException, simply return without doing anything (if the method returns boolean, return false; if an object, an empty reference; etc.)

And by the way, how/ when does OOo crash? could you register the extension? did you try debugging it from within NetBeans?

Regards
Ariel.


--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

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

Reply via email to