On 11/20/09 14:47, Steffen Boersig wrote:
I finished my project under Windows and since it's all written in Java I wanted to try it under linux. Several errors that occured (Sidenote: Why is the folder structure of OO installation directory different under linux compared to windows??)

To follow established expectations on the various platforms, and, in some cases, due to technical necessities of the various platforms. In principle, on all platforms there are three layers (URE, Basis, Brand) at potentially arbitrary positions (even relative to each other). Within the URE layer, one difference among platforms is that Windows has both executables and libraries in bin, while Unix has libraries in lib. Another difference is that, since recently, Windows shifted virtually all libraries from the Basis program to the Brand program directory.

could be fixed but one is persistent:
I always get a NoConnectionException under Linux, whereas under Windows everything goes fine.
For testing purposes I checked OO Connection before loading from Stream:

       aBean = new OOoBean();
       try
       {
           aBean.getOOoConnection();
       }
       catch (NoConnectionException e1)
       {
           e1.printStackTrace();
       }

Error:

com.sun.star.comp.beans.NoConnectionException
      at com.sun.star.comp.beans.OOoBean.setOOoConnection(OOoBean.java:185)
      at com.sun.star.comp.beans.OOoBean.getOOoConnection(OOoBean.java:283)
      at de.abas.macro.AbasEditor.<init>(AbasEditor.java:112)

OOoBean tries to connect to soffice via a named pipe, which requires native code in libjpipe.so being called from jurt.jar. I assume that some Java error occurs failing to load that native lib which would be swallowed by the "catch ( java.lang.Throwable aExc )" at OOoBean.java l. 184. I suggest you patch OOoBean.java to include "aExc.printStackTrace();" before "throw new NoConnectionException();" to give more information.

I think the rest of the stacktrace is not important.
I did setup all needed external jars in the manifest file (ridl.jar,juh.jar.jurt.jar,sandbox.jar,officebean.jar,unoil.jar) and they are properly loaded.

What does the manifest look like exactly? At what location do you reference those jars, within the OOo installation?

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to