Bug#899183: submit at bugs.debian.org
Martin Kittel
debian at martin-kittel.de
Sun May 20 13:23:28 BST 2018
Package: libpdfbox2-java
Version: 2.0.9-1
Severity: important
Dear Maintainer,
I get the exception below when running my Java program using
libpdfbox2-java. I tried running the program with different
JREs (down to 1.7) but the error persists. I guess the problem is
that libpdfbox2-java is compiled using Java 9. Java 9 seems to
introduce a change that breaks things even when running with
older JREs:
'because in JDK9 ByteBuffer.flip() returns a ByteBuffer... It
used to return a Buffer in JDK8.'
(see https://github.com/plasma-umass/doppio/issues/497 also
for suggestions on how to fix this at build time)
I downloaded the official jar
(http://www-us.apache.org/dist/pdfbox/2.0.9/fontbox-2.0.9.jar) and with
that one I don't see the problem.
Exception in thread "AWT-EventQueue-1" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at org.apache.fontbox.type1.Type1Lexer.readToken(Type1Lexer.java:184)
at org.apache.fontbox.type1.Type1Lexer.<init>(Type1Lexer.java:64)
at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:86)
at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:56)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.getType1Font(FileSystemFontProvider.java:762)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.access$100(FileSystemFontProvider.java:55)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider$FSFontInfo.getFont(FileSystemFontProvider.java:131)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMapperImpl.java:436)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFontBoxFont(FontMapperImpl.java:376)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.getFontBoxFont(FontMapperImpl.java:350)
at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:146)
at org.apache.pdfbox.pdmodel.font.PDType1Font.<clinit>(PDType1Font.java:79)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.verifyOrCreateDefaults(PDAcroForm.java:128)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.<init>(PDAcroForm.java:93)
...
Best wishes,
Martin.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libpdfbox2-java depends on:
ii libcommons-logging-java 1.2-2
ii libfontbox2-java 2.0.9-1
libpdfbox2-java recommends no packages.
Versions of packages libpdfbox2-java suggests:
ii libbcmail-java 1.59-1
ii libbcprov-java 1.59-1
-- no debconf information
More information about the pkg-java-maintainers
mailing list