[Issue] 3.3: Cannot add UDF "UNO RDB Type Library" Extension

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
gurfle
Posts: 67
Joined: Wed Dec 02, 2009 5:40 am

[Issue] 3.3: Cannot add UDF "UNO RDB Type Library" Extension

Post by gurfle »

I first posted as a problem in LibreOffice 3.3 here, but now it is evident that something changed in OpenOffice in the upgrade from 3.2 to 3.3 to cause this:

Whenever I try to add a self-made "UNO RDB Type Library", as an Extension, the attempt always fails with this message:

(com.sun.star.uno.RuntimeException) { { Message = "com.sun.star.DeploymentException: an error occured during file opening", Context = (com.sun.star.uno.XInterface) @0 } }

I recompile and merge into a registry file the following test IDL type definition (which can be added just fine as an extension to Openoffice 3.2):

Code: Select all

#ifndef __names_nick_openoffice_xpythoncomponents_idl__
#define __names_nick_openoffice_xpythoncomponents_idl__

module names { module nick { module openoffice {

    interface XOwnArray
    {
       [attribute] any Values;
    };

    interface XArgument
    {
       [attribute] double target;
       [attribute] double init;
       [attribute] double size;
       [attribute] long nitt;

       [attribute] sequence<double> x;
       [attribute] sequence<double> f;
       [attribute] short side;
       [attribute] short mode;
       [attribute] double lastx;
    };


    interface XFirst
    {
       [attribute] any thing;
       any thingplus23(  );
    };

    interface XFirstFull
    {
       [attribute] any thing;
       any thingplus23(  );
    };

// I think this is needed for "Full" Java (using uno-skeletonmaker) - but NOT Python - Implementation
//    service SFirstFull: XFirstFull {
//
//    };

}; }; };
#endif
Here is the script that generates the rdb file from the above code:

Code: Select all

idlc -w -cid -I /usr/share/idl/openoffice $1.idl
if [ $? -ne 0 ]
then
  exit
fi
rm -f $1.rdb
regmerge -v $1.rdb /UCR $1.urd
rm -f $1.urd
The messages from the script do not indicate any problem:

Code: Select all

Compiling: PythonOOComponents.idl
merging registry "PythonOOComponents.urd" under key "/UCR" in registry "PythonOOComponents.rdb".
However selecting the resulting rdb file from Tools -> Extension Manager... -> Add...
always yields the error I show at the start of this post.

Anybody know if a change has crept in between 3.2 and 3.3 to cause this? I cannot find any new in documenation on the IDL or using the "idlc" and "regmerge" tools as I show above.

Thanks, Nick
Last edited by Hagar Delest on Wed Oct 12, 2011 12:36 pm, edited 1 time in total.
Reason: tagged the thread as Issue (link to a bug report).
Nicholas Dreyer
AMD sempron 3.4GHz, 1G RAM, nForce3-250Gb motherboard

AntiX M11
LibreOffice 3.4.3

Posts prior to Aug. 18, 2011 referenced
Linux Debian (lenny-backports or squeeze)
OpenOffice 3.2.1
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: OOo3.2->3.3: Cannot add UDF "UNO RDB Type Library" Exten

Post by hanya »

The installation of a single file through extension manager has been broken on Linux environments. Put it into an OXT package.
https://issues.apache.org/ooo/show_bug.cgi?id=113279
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
User avatar
gurfle
Posts: 67
Joined: Wed Dec 02, 2009 5:40 am

Re: OOo3.2->3.3: Cannot add UDF "UNO RDB Type Library" Exten

Post by gurfle »

Thanks for confirmation and getting the bug reported. The simple approach was convenient, but I guess now it's time I learn how to make an OXT package. :geek:
Nicholas Dreyer
AMD sempron 3.4GHz, 1G RAM, nForce3-250Gb motherboard

AntiX M11
LibreOffice 3.4.3

Posts prior to Aug. 18, 2011 referenced
Linux Debian (lenny-backports or squeeze)
OpenOffice 3.2.1
Post Reply