Hi René,

sorry that it took a while to get back, but I got totally carried away
changing/enhancing the installation scripts and had to get everything
into sync again, before coming back to check out and analyze the problem
with the Ubuntu distribution.

Here's to what boils it down:

    * Using latest 64-bit Ubuntu, having everything updated to today,
    * Running an ooRexx script which uses the OOo/UNO Java bridge to
      interact with OOo, yielding the following error:

        40 *-* xContext = UNO.connect()         -- connect to server and
    retrieve the XContext object
    REX0040E: Error 40 running /usr/bin/UNO.CLS line 1804:  Incorrect
    call to routine
    REX0634E: Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java
    exception occurred: [org.apache.bsf.BSFException: /// Java-exception
    (RexxAndJava) occurred:
    [java.lang.reflect.InvocationTargetException], g*etCause():
    [java.lang.UnsatisfiedLinkError:
    
com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I*]
    \\\?BSF4ooRexx subfunction "invoke": object
    'java.lang.cl...@593d93f4' - method [FINDINTERFACEWITHMEMBER],
    method not found or error (exception) executing method!]

Uninstalling the Ubuntu OOo and instead installing the genuine OOo,
downloaed from http://OpenOffice.org/download, installing it and running
the very same program works without an error!

In the case it matters, here is the CLASSPATH setting for the Ubuntu OOo:

    
/opt/BSF4ooRexx/bsf-v400-20090910.jar:/opt/BSF4ooRexx/bsf-rexx-engine.jar:.::/usr/lib/openoffice/program/../basis-link/ure-link/share/java/ridl.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/jurt.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/juh.jar:/usr/lib/openoffice/program/../basis-link/program/classes/unoil.jar:/usr/lib/openoffice/progra
      

The genuine OOo will have practically the same setting, except that its
directory would be pointed to:
"/opt/openoffice.org3/program/../basis-link/ure-link/share/java/*".

HTH,

---rony



On 17.08.2010 21:32, rony wrote:
> Hi René,
>
> On 17.08.2010 21:05, Rene Engelhard wrote:
>   
>> On Mon, Aug 16, 2010 at 06:49:24PM +0200, rony wrote:
>>   
>>     
>>> (Due to a package that excercises the Java-UNO-bridge I have stumbled
>>> over Ubuntu's distro which seems to be broken in that area and read
>>>     
>>>       
>> Where exactly? (Ubuntu borrows my packages and breaks them at times,
>> but what you experience could also be bug in Debian, so...)
>>   
>>     
> I noticed that in the Java bindings when trying to install the ooRexx
> scripting framework (which extends from OOo's Java scirpting framework
> and which macros get dispatched via this Java infrastructure).
>
> Have one 64-bit Ubuntu untampered which I will take a closer look
> tomorrow evening, trying to come up with more (hopefully useful) pointers.
>
>
>   
>>> about other distributions that at least used to cripple OOo by removing
>>> some if not all of the genuine Java support).
>>>     
>>>       
>> "used to" is right, I think nowadays all ship it compiled with OpenJDK
>> at least on "mainstream" architectures. (Or use Sun JDK, which truly free
>> distros of course cannot use).
>>   
>>     
> Grüße/Regards,
>
> ---rony
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>   

Reply via email to