Bug#895440: jabref: The problem continues in Debian 11 bullseye
Pep Roca
pep.roca at gmail.com
Mon Feb 21 09:01:12 GMT 2022
Helo, Tony:
Thank's for your help.
El dj. 17 de 02 de 2022 a les 21:58 -0800, en/na tony mancill va
escriure:
> Hi Pep.
>
> There is a parameter setting called ooJarsPath that I believe
> might be set incorrectly for your installation and is causing the
> issue
> you are seeing. There are two ways to access the setting.
>
> 1) Start JabRef and then navigate to:
>
> Options -> Preferences -> Show Preferences
>
> The key is "ooJarsPath" and the value should be
> "/usr/lib/libreoffice".
> Based on the exception trace you provided in the bug report, I
> believe
> it is currently set to "/usr/lib/libreoffice/program/classes" on your
> system.
>
> OR
>
> 2) Stop Jabref (so it doesn't overwrite the file) and edit the
> setting
> directly in this file:
>
> ~/.java/.userPrefs/net/sf/jabref/prefs.xml
>
> After saving the file, you can restart JabRef.
>
> JabRef automatically appends "/program/classes" to the ooJars path on
> Linux (see [1]), and the unoil.jar is found in
> /usr/lib/libreoffice/program/classes/unoil.jar, so hopefully that
> resolves the issue you are seeing.
>
> Please let me know if it does not.
In my file there is:
<entry key="ooExecutablePath" value="/usr/lib/libreoffice/program/soffice"/>
<entry key="ooJarsPath" value="/usr/lib/libreoffice/program/classes/"/>
<entry key="ooPath" value="/opt/openoffice.org3"/>
I have changed the value of the "ooJarsPath" to the correct value
"/usr/lib/libreoffice" and now the connection to the LibreOffice is
done correctly.
But when I click on the folder icon (“Select which open Write document
to work on”), nothing happens.
The output from the program is:
******************
$ DEBUG_WRAPPER=true /usr/bin/jabref
[debug] /usr/bin/jabref: Picking up the JVM designated by the alternatives system:
[debug] /usr/bin/jabref: JAVA_HOME = '/usr/lib/jvm/java-11-openjdk-amd64'
[debug] /usr/bin/jabref: Found JAVA_HOME = '/usr/lib/jvm/java-11-openjdk-amd64'
[debug] /usr/bin/jabref: Found JAVA_CMD = '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'
[debug] /usr/bin/jabref: Environment variable CLASSPATH is ''
[debug] /usr/bin/jabref: Runnning /usr/lib/jvm/java-11-openjdk-amd64/bin/java -classpath /usr/share/java/jabref.jar:/usr/share/java/
bcprov.jar:/usr/share/java/antlr3-runtime.jar:/usr/share/java/antlr4-runtime.jar:/usr/share/java/com.android.json.jar:/usr/share/java
/commons-cli.jar:/usr/share/java/commons-codec.jar:/usr/share/java/commons-lang3.jar:/usr/share/java/commons-logging.jar:/usr/share/j
ava/fontbox.jar:/usr/share/java/glazedlists.jar:/usr/share/java/guava.jar:/usr/share/java/httpasyncclient.jar:/usr/share/java/httpcli
ent.jar:/usr/share/java/httpcore.jar:/usr/share/java/httpcore-nio.jar:/usr/share/java/httpmime.jar:/usr/share/java/java-string-simila
rity.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/java/jempbox.jar:/usr/share/java/jgoodies-common.jar:/usr/share/java/jgoodies-fo
rms.jar:/usr/share/java/jgoodies-looks.jar:/usr/share/java/jhlabs-filters.jar:/usr/share/java/jsoup.jar:/usr/share/java/juh.jar:/usr/
share/java/jurt.jar:/usr/share/java/log4j-api.jar:/usr/share/java/log4j-core.jar:/usr/share/java/log4j-jcl.jar:/usr/share/java/microb
a.jar:/usr/share/java/mariadb-java-client.jar:/usr/share/java/pdfbox.jar:/usr/share/java/postgresql.jar:/usr/share/java/ridl.jar:/usr
/share/java/spin.jar:/usr/share/java/swingx.jar:/usr/share/java/swing-layout.jar:/usr/share/java/unirest-java.jar:/usr/share/java/uno
il.jar --add-opens=java.desktop/java.awt=ALL-UNNAMED net.sf.jabref.JabRefMain
09:37:48.598 [AWT-EventQueue-0] WARN net.sf.jabref.JabRefGUI - There seem to be problems with OpenJDK and the default GTK Look&Feel.
Using Metal L&F instead. Change to another L&F with caution.
09:38:02.728 [AWT-EventQueue-0] ERROR net.sf.jabref.FallbackExceptionHandler - Uncaught exception Occurred in Thread[AWT-EventQueue-0
,6,main]
java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (
jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at net.sf.jabref.gui.openoffice.OpenOfficePanel.addURL(OpenOfficePanel.java:484) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.gui.openoffice.OpenOfficePanel.connect(OpenOfficePanel.java:419) ~[JabRef-3.8.2.jar:?]
at net.sf.jabref.gui.openoffice.OpenOfficePanel.lambda$initPanel$1(OpenOfficePanel.java:142) ~[JabRef-3.8.2.jar:?]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) ~[?:?]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) ~[?:?]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) ~[?:?]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) ~[?:?]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) ~[?:?]
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) ~[?:?]
at java.awt.Component.processMouseEvent(Component.java:6635) ~[?:?]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3342) ~[?:?]
at java.awt.Component.processEvent(Component.java:6400) ~[?:?]
at java.awt.Container.processEvent(Container.java:2263) ~[?:?]
at java.awt.Component.dispatchEventImpl(Component.java:5011) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2321) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4843) ~[?:?]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) ~[?:?]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547) ~[?:?]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2307) ~[?:?]
at java.awt.Window.dispatchEventImpl(Window.java:2772) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4843) ~[?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) ~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:745) ~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:743) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ~[?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) ~[?:?]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
******************
Perhaps the problem is deeper and the connection with a LibreOffice
document is fully broken without OpenJDK 8. The problem is that OpenJDK
8 is not available as a package in Debian Bullseye.
Kind regards and thanks for maintaining JabRef. Pep
>
> Cheers,
> tony
>
> [1]
> https://salsa.debian.org/java-team/jabref/-/blob/master/src/main/java/net/sf/jabref/gui/openoffice/OpenOfficePanel.java#L403
More information about the pkg-java-maintainers
mailing list