[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-07 Thread Schlomo Schapiro
Can you please explain why you believe that the root cause is a hard
coded path in this extension? I unpacked the OXT and the embedded JAR
file and could not find any "libreoffice" string in any of the files
there. I could find all kind of other UI strings from the extension so
that I tend to believe my test showing that the path is *not* hard
coded.

What else makes you so sure that only the extension can be blamed for
this problem?


---
Regarding your general point and closing this issue:

I totally understand - and agree with - your line of arguments and also
your view on what is proper with regard to file locations.

Nevertheless I kindly ask you to reconsider adding my workaround (or something 
more appropriate to the same effect) to the LO packages on Ubuntu for the 
following reasons:
* Users don't know or care why something fails. They just get frustrated. If we 
as Ubuntu have the chance to help them then we should do so.
* If we can add a fix to Ubuntu that does not harm anybody but helps some 
people then IMHO we should do so - not as a step down from our high principles 
but as a step up towards just helping our users.
* I estimate that we can "fix" 90% of Linux users of this extension
* I have the impression that fixing it here will be much easier then getting 
DeutschePost to fix it, they don't really care about us.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Invalid

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:121)
... 11 more
  Caused by: java.lang.UnsatisfiedLinkError: no java_uno in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.sun.star.lib.uno.environments.remote.NativeThreadPool.(NativeThreadPool.java:77)
at 

[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-07 Thread Björn Michaelsen
As such closing invalid in LibreOffice/Ubuntu on this specific issue.
The specific issue needs to be fixed in the extension. The generic
trouble of a simpler bootstrapping is something for upstream to consider
indeed -- but unrelated to the specific issue mentioned here.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Invalid

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:121)
... 11 more
  Caused by: java.lang.UnsatisfiedLinkError: no java_uno in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.sun.star.lib.uno.environments.remote.NativeThreadPool.(NativeThreadPool.java:77)
at 
com.sun.star.lib.uno.environments.remote.ThreadPoolManager.create(ThreadPoolManager.java:46)
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.(java_remote_bridge.java:330)
... 18 more

  The relevant part is java_uno. With libreoffice --strace I found out
  that actually it cannot find the libjava_uno.so library.

  I found a workaround by creating the
  /usr/lib/libreoffice/program/ooenv file with

  export
  
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libreoffice/program/classes:/usr/lib/libreoffice/program

  in it.

  This issue has been also discussed on UbuntuUsers.de:
  https://forum.ubuntuusers.de/topic/e-porto-add-in-libreoffice-5-1-6-2
  -kein-login-/

  Can you please improve libreoffice / ure so that it will set the
  library path correctly without user intervention?

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ure 5.1.6~rc2-0ubuntu1~xenial1
  ProcVersionSignature: Ubuntu 4.4.0-71.92-generic 4.4.49
  Uname: Linux 4.4.0-71-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Apr  5 08:12:47 2017
  

[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-07 Thread Björn Michaelsen
Indeed hardcoding the path to the URE is a bug in the extension, not in
LibreOffice.

That Ubuntus LibreOffice resides in proper
https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard directories
and not in /opt is not an Ubuntu invention, but comes from Debian. Also
~every other Linux distro does the same -- its fundamentally the right
thing to do.

Two free hints from IRC to forward to Deutsche Post when asking them to
fix this issue:

Generic hint on setup:
09:47:49 @sberg | Sweetshark, re 
:
 tl;dr; is the problem that they've got their own Java-based UNO-using process? 
Then they should use that "simple bootstrap" stuff 
()
 or at least use 'unoinfo java' (for which they need to know how to find a LO 
installation's

Or use preexisting solutions to this problem:
09:33:24@thorsten | Sweetshark sberg: bubli added that to noa-libre 
(somewhere in the libo repo on github), IIRC that was the way du jour when we 
discussed it

The latter refers to the custom class loader implementation at e.g.:
https://github.com/LibreOffice/noa-libre/blob/master/src/ag/ion/bion/officelayer/util/OfficeLoader.java

As such, while getting this setup boilerplate right now is a
unreasonable burden on extension developers as of now, there is nothing
wrong per se with Ubuntus LibreOffice here. Rather the extension needs
to do its setup right.

Beyond that, upstream LibreOffice SDK certainly could make this stuff
easier. But that can happen upstream _only_ as to allow extensions to be
able expend the more simple bootstrapping everywhere (from a specific
upstream version onwards).


** Changed in: libreoffice (Ubuntu)
   Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Invalid

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 

[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-06 Thread Schlomo Schapiro
I am not sure that the installation location has any effect except for
those cases where people hard-code paths which I would not recommend in
any case.

This bug is more about setting the correct library path to match the
installation choice taken by the LO Ubuntu flavor.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Confirmed

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:121)
... 11 more
  Caused by: java.lang.UnsatisfiedLinkError: no java_uno in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.sun.star.lib.uno.environments.remote.NativeThreadPool.(NativeThreadPool.java:77)
at 
com.sun.star.lib.uno.environments.remote.ThreadPoolManager.create(ThreadPoolManager.java:46)
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.(java_remote_bridge.java:330)
... 18 more

  The relevant part is java_uno. With libreoffice --strace I found out
  that actually it cannot find the libjava_uno.so library.

  I found a workaround by creating the
  /usr/lib/libreoffice/program/ooenv file with

  export
  
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libreoffice/program/classes:/usr/lib/libreoffice/program

  in it.

  This issue has been also discussed on UbuntuUsers.de:
  https://forum.ubuntuusers.de/topic/e-porto-add-in-libreoffice-5-1-6-2
  -kein-login-/

  Can you please improve libreoffice / ure so that it will set the
  library path correctly without user intervention?

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ure 5.1.6~rc2-0ubuntu1~xenial1
  ProcVersionSignature: Ubuntu 4.4.0-71.92-generic 4.4.49
  Uname: Linux 4.4.0-71-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Apr  5 08:12:47 2017
  

[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-06 Thread dino99
Seems to be a widely shared issue across milestones. 
'URE' documentation shows that Ubuntu does not follow the main common path "By 
default, the URE is installed in /opt/libreoffice/ure on Linux"
https://github.com/LibreOffice/core/tree/master/ure/source

It should be good if Canonical LO team pay attention to such problem.
Sadly Lo reports on Launchpad seems reported and then ignored most of
the time.

and other similar problem related to 'ure' lp:1592071

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Confirmed

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:121)
... 11 more
  Caused by: java.lang.UnsatisfiedLinkError: no java_uno in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.sun.star.lib.uno.environments.remote.NativeThreadPool.(NativeThreadPool.java:77)
at 
com.sun.star.lib.uno.environments.remote.ThreadPoolManager.create(ThreadPoolManager.java:46)
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.(java_remote_bridge.java:330)
... 18 more

  The relevant part is java_uno. With libreoffice --strace I found out
  that actually it cannot find the libjava_uno.so library.

  I found a workaround by creating the
  /usr/lib/libreoffice/program/ooenv file with

  export
  
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libreoffice/program/classes:/usr/lib/libreoffice/program

  in it.

  This issue has been also discussed on UbuntuUsers.de:
  https://forum.ubuntuusers.de/topic/e-porto-add-in-libreoffice-5-1-6-2
  -kein-login-/

  Can you please improve libreoffice / ure so that it will set the
  library path correctly without user intervention?

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ure 5.1.6~rc2-0ubuntu1~xenial1
  ProcVersionSignature: 

[Desktop-packages] [Bug 1680336] Re: libreoffice java based extension cannot find java_uno due to wrong java.library.path

2017-04-06 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libreoffice (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1680336

Title:
  libreoffice java based extension cannot find java_uno due to wrong
  java.library.path

Status in libreoffice package in Ubuntu:
  Confirmed

Bug description:
  I try to use the "E-Porto Add In" (extension to insert a stamp for the
  German postal system) from https://www.deutschepost.de/de/i
  /internetmarke-porto-drucken/e-porto-add-in.html on Ubuntu 16.04
  amd64.

  The extension contains several XCU and one JAR:

  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 ll
  total 744
  drwxrwx--- 8 schlomo schlomo   4096 Apr  5 06:45 ./
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 ../
  drwxrwx--- 4 schlomo schlomo   4096 Apr  5 06:45 assets/
  -rw-rw 1 schlomo schlomo   1339 Apr  5 06:45 description.xml
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 images/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 07:01 lib/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 licenses/
  drwxrwx--- 2 schlomo schlomo   4096 Apr  5 06:45 META-INF/
  -rw-rw 1 schlomo schlomo 721541 Apr  5 06:45 OOEporto.jar
  drwxrwx--- 3 schlomo schlomo   4096 Apr  5 06:45 registry/
  
schlomo@brho:~/.config/libreoffice/4/user/uno_packages/cache/uno_packages/lu265944hpbsb.tmp_/loeportoinstaller_v3_0_0.oxt$
 cat META-INF/manifest.xml 
  
  http://openoffice.org/2001/manifest;>





  

  Using the extension throws the following Java exception:

  Exception in thread "Thread-1312" com.sun.star.lang.IllegalArgumentException
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:126)
at 
com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:107)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:349)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:280)
at de.deutschepost.ooeporto.comm.a.e(Unknown Source)
at de.deutschepost.ooeporto.comm.a.c(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.comm.a.a(Unknown Source)
at de.deutschepost.ooeporto.core.e.c(Unknown Source)
at de.deutschepost.ooeporto.core.e.a(Unknown Source)
at de.deutschepost.ooeporto.gui.bM.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.star.uno.UnoRuntime.getBridge(UnoRuntime.java:474)
at com.sun.star.uno.UnoRuntime.getBridgeByName(UnoRuntime.java:512)
at 
com.sun.star.comp.bridgefactory.BridgeFactory.createBridge(BridgeFactory.java:121)
... 11 more
  Caused by: java.lang.UnsatisfiedLinkError: no java_uno in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at 
com.sun.star.lib.uno.environments.remote.NativeThreadPool.(NativeThreadPool.java:77)
at 
com.sun.star.lib.uno.environments.remote.ThreadPoolManager.create(ThreadPoolManager.java:46)
at 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.(java_remote_bridge.java:330)
... 18 more

  The relevant part is java_uno. With libreoffice --strace I found out
  that actually it cannot find the libjava_uno.so library.

  I found a workaround by creating the
  /usr/lib/libreoffice/program/ooenv file with

  export
  
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libreoffice/program/classes:/usr/lib/libreoffice/program

  in it.

  This issue has been also discussed on UbuntuUsers.de:
  https://forum.ubuntuusers.de/topic/e-porto-add-in-libreoffice-5-1-6-2
  -kein-login-/

  Can you please improve libreoffice / ure so that it will set the
  library path correctly without user intervention?

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ure 5.1.6~rc2-0ubuntu1~xenial1
  ProcVersionSignature: Ubuntu 4.4.0-71.92-generic 4.4.49
  Uname: Linux 4.4.0-71-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Apr  5 08:12:47 2017
  InstallationDate: Installed on 2016-05-01 (338 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.1)