Bug#893251: jabref 3.8 is started with OpenJDK 9 instead of 8

Christian Buhtz c.buhtz at posteo.jp
Sat Mar 17 14:32:16 UTC 2018


Package: jabref
Version: 3.8.2+ds-2
Severity: important

Dear Maintainer,

JabRef is currently not working. The script in /usr/bin/jabref requires
"java8". But this need is ignored and version 9 is used. Because of that there
are some errors.

I don'T know how to make the installed JabRef run again with "java8".

$ DEBUG_WRAPPER=1 jabref --debug
[debug] /usr/bin/jabref: Picking up the JVM designated by the alternatives
system:
[debug] /usr/bin/jabref:   JAVA_HOME = '/usr/lib/jvm/java-9-openjdk-amd64'
[debug] /usr/bin/jabref: Found JAVA_HOME = '/usr/lib/jvm/java-9-openjdk-amd64'
[debug] /usr/bin/jabref: Found JAVA_CMD = '/usr/lib/jvm/java-9-openjdk-
amd64/bin/java'
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
[warning] /usr/bin/jabref: /usr/lib/jvm/java-9-openjdk-amd64/bin/java
[debug] /usr/bin/jabref: Environment variable CLASSPATH is ''
[debug] /usr/bin/jabref: Runnning /usr/lib/jvm/java-9-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/java/fontbox.jar:/usr/share/java/glazedlists.jar:/usr/share/java/guava.jar:/usr/share/java/httpasyncclient.jar:/usr/share/java/httpclient.jar:/usr/share/java/httpcore.jar:/usr/share/java/httpcore-
nio.jar:/usr/share/java/httpmime.jar:/usr/share/java/java-string-
similarity.jar:/usr/share/java/jempbox.jar:/usr/share/java/jgoodies-
common.jar:/usr/share/java/jgoodies-forms.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/microba.jar:/usr/share/java/mysql-
connector-
java.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/unoil.jar
net.sf.jabref.JabRefMain --debug

15:27:50.292 [AWT-EventQueue-0] ERROR net.sf.jabref.FallbackExceptionHandler -
Uncaught exception Occurred in Thread[AWT-EventQueue-0,6,main]
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
        at
net.sf.jabref.logic.importer.ImportFormatReader.resetImportFormats(ImportFormatReader.java:56)
~[JabRef-3.8.2.jar:?]
        at net.sf.jabref.JabRefMain.start(JabRefMain.java:78)
~[JabRef-3.8.2.jar:?]
        at net.sf.jabref.JabRefMain.lambda$main$0(JabRefMain.java:40)
~[JabRef-3.8.2.jar:?]
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
~[?:?]
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) ~[?:?]
        at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:?]
        at java.awt.EventQueue$3.run(EventQueue.java:717) ~[?:?]
        at java.awt.EventQueue$3.run(EventQueue.java:711) ~[?:?]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
        at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
~[?:?]
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) ~[?:?]
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
[?:?]
        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) [?:?]
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
        at
jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
~[?:?]
        at
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:496) ~[?:?]
        ... 17 more


$ DEBUG_WRAPPER=1 JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ jabref --debug
[debug] /usr/bin/jabref: Using provided JAVA_HOME =
'/usr/lib/jvm/java-8-openjdk-amd64/'
[debug] /usr/bin/jabref: Found JAVA_HOME = '/usr/lib/jvm/java-8-openjdk-amd64/'
[debug] /usr/bin/jabref: Found JAVA_CMD = '/usr/lib/jvm/java-8-openjdk-
amd64//bin/java'
/usr/lib/jvm/java-8-openjdk-amd64//bin/java
[warning] /usr/bin/jabref: /usr/lib/jvm/java-8-openjdk-amd64//bin/java
[debug] /usr/bin/jabref: Environment variable CLASSPATH is ''
[debug] /usr/bin/jabref: Runnning /usr/lib/jvm/java-8-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/java/fontbox.jar:/usr/share/java/glazedlists.jar:/usr/share/java/guava.jar:/usr/share/java/httpasyncclient.jar:/usr/share/java/httpclient.jar:/usr/share/java/httpcore.jar:/usr/share/java/httpcore-
nio.jar:/usr/share/java/httpmime.jar:/usr/share/java/java-string-
similarity.jar:/usr/share/java/jempbox.jar:/usr/share/java/jgoodies-
common.jar:/usr/share/java/jgoodies-forms.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/microba.jar:/usr/share/java/mysql-
connector-
java.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/unoil.jar
net.sf.jabref.JabRefMain --debug
Exception in thread "main" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
        at
org.apache.logging.log4j.core.appender.OutputStreamManager.flushBuffer(OutputStreamManager.java:292)
        at
org.apache.logging.log4j.core.appender.OutputStreamManager.flush(OutputStreamManager.java:303)
        at
org.apache.logging.log4j.core.appender.OutputStreamManager.closeOutputStream(OutputStreamManager.java:308)
        at
org.apache.logging.log4j.core.appender.OutputStreamManager.releaseSub(OutputStreamManager.java:137)
        at
org.apache.logging.log4j.core.appender.AbstractManager.stop(AbstractManager.java:86)
        at
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.stop(AbstractOutputStreamAppender.java:142)
        at
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.stop(AbstractOutputStreamAppender.java:136)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.stop(AbstractConfiguration.java:359)
        at
org.apache.logging.log4j.core.AbstractLifeCycle.stop(AbstractLifeCycle.java:136)
        at
org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:550)
        at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:617)
        at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
        at
org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
        at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
        at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
        at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
        at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122)
        at
org.apache.logging.log4j.jcl.LogAdapter.getContext(LogAdapter.java:39)
        at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
        at
org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:40)
        at
org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:55)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
        at net.sf.jabref.JabRefMain.<clinit>(JabRefMain.java:37)



$ dpkg -l "openjdk*"
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                                   Version                  Architektur
Beschreibung
+++-======================================-========================-========================-==================================================================================
un  openjdk-6-jre                          <keine>                  <keine>
(keine Beschreibung vorhanden)
un  openjdk-6-jre-headless                 <keine>                  <keine>
(keine Beschreibung vorhanden)
un  openjdk-8-demo                         <keine>                  <keine>
(keine Beschreibung vorhanden)
ii  openjdk-8-jdk:amd64                    8u162-b12-1              amd64
OpenJDK Development Kit (JDK)
ii  openjdk-8-jdk-headless:amd64           8u162-b12-1              amd64
OpenJDK Development Kit (JDK) (headless)
ii  openjdk-8-jre:amd64                    8u162-b12-1              amd64
OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-8-jre-headless:amd64           8u162-b12-1              amd64
OpenJDK Java runtime, using Hotspot JIT (headless)
un  openjdk-8-source                       <keine>                  <keine>
(keine Beschreibung vorhanden)
un  openjdk-9-demo                         <keine>                  <keine>
(keine Beschreibung vorhanden)
ii  openjdk-9-jdk:amd64                    9.0.4+12-2               amd64
OpenJDK Development Kit (JDK)
ii  openjdk-9-jdk-headless:amd64           9.0.4+12-2               amd64
OpenJDK Development Kit (JDK) (headless)
ii  openjdk-9-jre:amd64                    9.0.4+12-2               amd64
OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-9-jre-headless:amd64           9.0.4+12-2               amd64
OpenJDK Java runtime, using Hotspot JIT (headless)
un  openjdk-9-source                       <keine>                  <keine>
(keine Beschreibung vorhanden)



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.10-towo.1-siduction-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jabref depends on:
ii  default-jre [java8-runtime]     2:1.9-61
ii  java-wrappers                   0.2
ii  libandroid-json-java            7.0.0+r33-1
ii  libantlr3-runtime-java          3.5.2-8
ii  libantlr4-runtime-java          4.5.3-2
ii  libbcprov-java                  1.59-1
ii  libcommons-cli-java             1.4-1
ii  libcommons-lang3-java           3.5-1
ii  libcommons-logging-java         1.2-2
ii  libglazedlists-java             1.9.1-2
ii  libguava-java                   19.0-1
ii  libhttpasyncclient-java         4.1.3-1
ii  libhttpclient-java              4.5.5-1
ii  libhttpmime-java                4.5.5-1
ii  libjava-string-similarity-java  0.24-1
ii  libjempbox-java                 1:1.8.13-2
ii  libjgoodies-common-java         1.8.1-2
ii  libjgoodies-forms-java          1.9.0-3
ii  libjgoodies-looks-java          2.7.0-2
ii  libjhlabs-filters-java          2.0.235-3
ii  libjsoup-java                   1.10.2-1
ii  liblog4j2-java                  2.10.0-1
ii  libmicroba-java                 1:0.4.4.3-5
ii  libpdfbox-java                  1:1.8.13-2
ii  libreoffice-java-common         1:6.0.2-1
ii  libspin-java                    1.5+dfsg-8
ii  libswing-layout-java            1.0.4-4
ii  libswingx-java                  1:1.6.2-3
ii  libunirest-java-java            1.4.8-2
ii  openjdk-8-jre [java8-runtime]   8u162-b12-1
ii  openjdk-9-jre [java8-runtime]   9.0.4+12-2

Versions of packages jabref recommends:
ii  libmysql-java            5.1.45-1
ii  libpostgresql-jdbc-java  9.4.1212-1
ii  libreoffice-writer       1:6.0.2-1+b1
ii  xdg-utils                1.1.2-2

Versions of packages jabref suggests:
ii  evince [postscript-viewer]       3.27.92-1
ii  ghostscript [postscript-viewer]  9.22~dfsg-2
ii  mupdf [pdf-viewer]               1.12.0+ds1-1
ii  xpdf [pdf-viewer]                3.04-7

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/jabref (from jabref package)


More information about the pkg-java-maintainers mailing list