I get a NPE within socketConnector.java:150 with the current release 5.0.0.5 of libreoffice and UNO API (jurt.jar) Seems there is already a change on GitHub. But the description of the change doesn't deal with an exception. https://github.com/LibreOffice/core/commit/9ffdcc76858bc01150727345de4dfd0ef40ed8c0 Regards, Sebastian java.lang.NullPointerException at com.sun.star.lib.connections.socket.socketConnector.connect(socketConnector.java:150) at com.sun.star.comp.connections.Connector.connect(Connector.java:114) at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:105)
Sebastian: it seems the useful http://cgit.freedesktop.org/libreoffice/core/commit/?id=9ffdcc76858bc01150727345de4dfd0ef40ed8c0 is only on master sources (so for future 5.1.0) Now since Noel affected himself to this bugtracker, I suppose he planned to backport this on 5.0 branch (and perhaps also on 5.0.1 branch).
Noel Grandin committed a patch related to this issue. It has been pushed to "libreoffice-5-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fe56dfd8261f311f78c375a54a09adb81489c854&h=libreoffice-5-0 tdf#93410 - NPE while connecting to LibreOffice via Java UNO API It will be available in 5.0.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
With the latest update of jurt.jar to version 5.0.2.2 (bundled with libreoffice 5.0.2) the socket connection to the background process works again. Thanks a lot.