Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JabRef not connecting to LibreOffice on Debian 8.9 #3139

Closed
bnapoletano opened this issue Aug 20, 2017 · 13 comments
Closed

JabRef not connecting to LibreOffice on Debian 8.9 #3139

bnapoletano opened this issue Aug 20, 2017 · 13 comments
Labels
component: libre-office platform: linux status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@bnapoletano
Copy link

bnapoletano commented Aug 20, 2017

JabRef version 4.0-dev on Debian 8.9

Attempting to connect JabRef to LibreOffice 4.3.3.2 yields an error similar to the one previously reported . I tried downloading the 4.0-dev version and adding the path to soffice to PATH and to libjpipe.so to LD_LIBRARY_PATH, and moving unoil.jar around, but still no luck. I'm not sure which file is not being found now, so here's the output:

```` 23:18:46.077 [AWT-EventQueue-0] WARN org.jabref.gui.openoffice.OpenOfficePanel - Could not connect to running OpenOffice/LibreOffice java.io.IOException: (Not all) required Open Office Jars were found inside installation path. at org.jabref.gui.openoffice.OpenOfficePanel.loadOpenOfficeJars(OpenOfficePanel.java:438) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at org.jabref.gui.openoffice.OpenOfficePanel.connect(OpenOfficePanel.java:388) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at org.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$0(OpenOfficePanel.java:145) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [?:1.8.0_144] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [?:1.8.0_144] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [?:1.8.0_144] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [?:1.8.0_144] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) [?:1.8.0_144] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) [?:1.8.0_144] at java.awt.Component.processMouseEvent(Component.java:6533) [?:1.8.0_144] at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [?:1.8.0_144] at java.awt.Component.processEvent(Component.java:6298) [?:1.8.0_144] at java.awt.Container.processEvent(Container.java:2236) [?:1.8.0_144] at java.awt.Component.dispatchEventImpl(Component.java:4889) [?:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2294) [?:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) [?:1.8.0_144] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) [?:1.8.0_144] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) [?:1.8.0_144] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) [?:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2280) [?:1.8.0_144] at java.awt.Window.dispatchEventImpl(Window.java:2746) [?:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) [?:1.8.0_144] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_144] at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) [?:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:731) [?:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:729) [?:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [?:1.8.0_144] at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_144] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_144] 23:18:52.072 [AWT-EventQueue-0] WARN org.jabref.gui.openoffice.OpenOfficePanel - Could not connect to running OpenOffice/LibreOffice java.io.IOException: (Not all) required Open Office Jars were found inside installation path. at org.jabref.gui.openoffice.OpenOfficePanel.loadOpenOfficeJars(OpenOfficePanel.java:438) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at org.jabref.gui.openoffice.OpenOfficePanel.connect(OpenOfficePanel.java:388) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at org.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$1(OpenOfficePanel.java:146) ~[JabRef-4.0-dev--snapshot--2017-08-19--master--b37b88049.jar:?] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [?:1.8.0_144] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [?:1.8.0_144] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [?:1.8.0_144] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [?:1.8.0_144] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) [?:1.8.0_144] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) [?:1.8.0_144] at java.awt.Component.processMouseEvent(Component.java:6533) [?:1.8.0_144] at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [?:1.8.0_144] at java.awt.Component.processEvent(Component.java:6298) [?:1.8.0_144] at java.awt.Container.processEvent(Container.java:2236) [?:1.8.0_144] at java.awt.Component.dispatchEventImpl(Component.java:4889) [?:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2294) [?:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) [?:1.8.0_144] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) [?:1.8.0_144] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) [?:1.8.0_144] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) [?:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2280) [?:1.8.0_144] at java.awt.Window.dispatchEventImpl(Window.java:2746) [?:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) [?:1.8.0_144] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_144] at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) [?:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:731) [?:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:729) [?:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [?:1.8.0_144] at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_144] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_144] File: aboutdialog.fxml not found, attempting with camel case File: aboutdialog.css not found, attempting with camel case ````

I don't use LibreOffice much, so it's not the end of the world, but it is problematic when working on collaborative papers that require LibreOffice.

Thank you!

@Siedlerchr
Copy link
Member

Siedlerchr commented Aug 20, 2017 via email

@Siedlerchr Siedlerchr added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Aug 20, 2017
@cedmfr
Copy link

cedmfr commented Aug 22, 2017

I've a similar trouble on my Mac OS Sierra 10.12.6 with LibreOffice 5.4.0.3 although I've a JRE set in LibreOffice (installed separatly from java website jre-8u144-macosx-x64) which is appearing and selected into LO Preferences/Advanced 'Oracle Corporation 1.8.0_144.
Manual connect or auto connect does not work... and it was working on Jabref 3.8 before updating to last version 4.0.beta3 !
When I click on browse all the applications appears in grey in the Application folder and are unclickable on it...
Please ... thank you for providing a solution to this. This link with LibreOffice have to be a major feature for Jabref in relation with CitationStyleLibrary.org project.

@bnapoletano
Copy link
Author

Sorry for the delay in responding. I have the libreoffice-java-common package installed, but am still receiving the same errors. I have tried creating symbolic links to the .jar files in the directory where JabRef looks, but then it hangs up while connecting.

@cedmfr
Copy link

cedmfr commented Aug 24, 2017

I've now the two installation on my mac. The older version 3.8.2 is working correctly with LibreOffice but the new version 4.0-beta3 does not. Strange ...!

@Siedlerchr
Copy link
Member

I just tested it on my XUbuntu 16.04 virtual machine, auto connect and manual connect and I used the latest development snapshot from http://builds.jabref.org/master/

LO: Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial2

JabRef: Path to executable dir: /usr/lib/libreoffice/program/soffice
Path to LO Library dir: /usr/lib/libreoffice/program/classes

And as far as I remember, I never manipulated the library settings. I just installed the libreoffice-java.common package. The libs are already relative links:

/usr/lib/libreoffice/program/classes $ ls -l
total 16
lrwxrwxrwx 1 root root 63 Apr 28 22:32 commonwizards.jar -> ../../../../share/libreoffice/program/classes/commonwizards.jar
lrwxrwxrwx 1 root root 54 Apr 28 22:32 form.jar -> ../../../../share/libreoffice/program/classes/form.jar
lrwxrwxrwx 1 root root 35 Apr 28 21:34 java_uno.jar -> ../../../../share/java/java_uno.jar
lrwxrwxrwx 1 root root 30 Apr 28 21:34 juh.jar -> ../../../../share/java/juh.jar
lrwxrwxrwx 1 root root 31 Apr 28 21:34 jurt.jar -> ../../../../share/java/jurt.jar
lrwxrwxrwx 1 root root 55 Apr 28 22:32 query.jar -> ../../../../share/libreoffice/program/classes/query.jar
lrwxrwxrwx 1 root root 56 Apr 28 22:32 report.jar -> ../../../../share/libreoffice/program/classes/report.jar
lrwxrwxrwx 1 root root 31 Apr 28 21:34 ridl.jar -> ../../../../share/java/ridl.jar
lrwxrwxrwx 1 root root 65 Apr 28 22:32 ScriptFramework.jar -> ../../../../share/libreoffice/program/classes/ScriptFramework.jar
lrwxrwxrwx 1 root root 71 Apr 28 22:32 ScriptProviderForJava.jar -> ../../../../share/libreoffice/program/classes/ScriptProviderForJava.jar
lrwxrwxrwx 1 root root 59 Apr 28 22:32 smoketest.jar -> ../../../../share/libreoffice/program/classes/smoketest.jar
lrwxrwxrwx 1 root root 55 Apr 28 22:32 table.jar -> ../../../../share/libreoffice/program/classes/table.jar
lrwxrwxrwx 1 root root 55 Apr 28 22:32 unoil.jar -> ../../../../share/libreoffice/program/classes/unoil.jar
lrwxrwxrwx 1 root root 36 Apr 28 21:34 unoloader.jar -> ../../../../share/java/unoloader.jar
lrwxrwxrwx 1 root root 62 Apr 28 22:32 XMergeBridge.jar -> ../../../../share/libreoffice/program/classes/XMergeBridge.jar
lrwxrwxrwx 1 root root 56 Apr 28 22:32 xmerge.jar -> ../../../../share/libreoffice/program/classes/xmerge.jar

@Doc73
Copy link
Contributor

Doc73 commented Aug 27, 2017

Here is my output:

totale 1004
lrwxrwxrwx 1 root root     63 lug 29 13:29 commonwizards.jar -> ../../../../share/libreoffice/program/classes/commonwizards.jar
lrwxrwxrwx 1 root root     54 lug 29 13:29 form.jar -> ../../../../share/libreoffice/program/classes/form.jar
lrwxrwxrwx 1 root root     38 lug 29 13:29 hsqldb.jar -> ../../../../share/java/hsqldb1.8.0.jar
lrwxrwxrwx 1 root root     35 lug 29 13:29 java_uno.jar -> ../../../../share/java/java_uno.jar
-rw-r--r-- 1 root root 624357 lug 29 13:29 js.jar
lrwxrwxrwx 1 root root     30 lug 29 13:29 juh.jar -> ../../../../share/java/juh.jar
lrwxrwxrwx 1 root root     31 lug 29 13:29 jurt.jar -> ../../../../share/java/jurt.jar
lrwxrwxrwx 1 root root     55 lug 29 13:29 query.jar -> ../../../../share/libreoffice/program/classes/query.jar
-rw-r--r-- 1 root root 297398 lug 29 13:29 reportbuilder.jar
-rw-r--r-- 1 root root  34484 lug 29 13:29 reportbuilderwizard.jar
lrwxrwxrwx 1 root root     56 lug 29 13:29 report.jar -> ../../../../share/libreoffice/program/classes/report.jar
lrwxrwxrwx 1 root root     31 lug 29 13:29 ridl.jar -> ../../../../share/java/ridl.jar
lrwxrwxrwx 1 root root     65 lug 29 13:29 ScriptFramework.jar -> ../../../../share/libreoffice/program/classes/ScriptFramework.jar
-rw-r--r-- 1 root root  25960 lug 29 13:29 ScriptProviderForBeanShell.jar
lrwxrwxrwx 1 root root     71 lug 29 13:29 ScriptProviderForJava.jar -> ../../../../share/libreoffice/program/classes/ScriptProviderForJava.jar
-rw-r--r-- 1 root root  16375 lug 29 13:29 ScriptProviderForJavaScript.jar
lrwxrwxrwx 1 root root     61 lug 29 13:29 sdbc_hsqldb.jar -> ../../../../share/libreoffice/program/classes/sdbc_hsqldb.jar
lrwxrwxrwx 1 root root     59 lug 29 13:29 smoketest.jar -> ../../../../share/libreoffice/program/classes/smoketest.jar
lrwxrwxrwx 1 root root     55 lug 29 13:29 table.jar -> ../../../../share/libreoffice/program/classes/table.jar
lrwxrwxrwx 1 root root     55 lug 29 13:29 unoil.jar -> ../../../../share/libreoffice/program/classes/unoil.jar
lrwxrwxrwx 1 root root     36 lug 29 13:29 unoloader.jar -> ../../../../share/java/unoloader.jar
lrwxrwxrwx 1 root root     62 lug 29 13:29 XMergeBridge.jar -> ../../../../share/libreoffice/program/classes/XMergeBridge.jar
lrwxrwxrwx 1 root root     56 lug 29 13:29 xmerge.jar -> ../../../../share/libreoffice/program/classes/xmerge.jar

@Siedlerchr
Copy link
Member

That's really confusing. I will check tomorrow on my linux machine if I can find the problem

@Doc73
Copy link
Contributor

Doc73 commented Aug 27, 2017

@Siedlerchr
Consider that you have an older system, with older LO.
I have:

Libreoffice 5.4.0-1
openjdk-8-jre 8u141-b15-1~deb9u1

@Siedlerchr
Copy link
Member

Okay, I updated to LO 5.4 from the ppa (still using Ubuntu 16.04) and I don't have any problems or error messages.

@Doc73
Copy link
Contributor

Doc73 commented Aug 28, 2017

@Siedlerchr
Thanks to your tests, I tried the latest resort: to reset the preferences!
Now, all is working flawlessy!

Just one thing: I remember there was an option to use a xml conf file in a custom path, but I no longer find this option. For me it is necessary, since in this way I share this configuration with other linux distros on the same and in other PCs.

EDIT: found! :-)

@Siedlerchr
Copy link
Member

@Doc73 Good to hear that it works now. Regarding the xml file: You can export your settings as xml file.
As this works for you now, I would close this issue

@Doc73
Copy link
Contributor

Doc73 commented Aug 28, 2017

@Siedlerchr
Yes, I found the option. Thanks!
Perhaps this problem depends on old configs not compatible with new JabRef versions and the solution is as simple as restoring preferences.

@bnapoletano
Copy link
Author

Hello again,

I had the connection working again, but with the update to 4.1, the ability to auto-connect (or connect manually) broke on me again. I'm using the same system configuration as before. Does anyone know what the trouble is? Is it a Debian issue? Would deleting the LibreOffice version install via the repository and replacing it with the latest version of LibreOffice perhaps resolve the issue? For the moment, I have reverted to version 3.8.2, which seems to work, but it would be nice if I could keep my JabRef version up to date. Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: libre-office platform: linux status: waiting-for-feedback The submitter or other users need to provide more information about the issue
Projects
None yet
Development

No branches or pull requests

5 participants