Bug#899183:

2018-07-27 Thread Markus Koschany
Am 27.07.2018 um 18:21 schrieb Andrea Vacondio:
> Ok, I see that 2.0.11-1 works correctly but I'm a bit lost. I compiled
> PDFBox using openjdk 10.0.2 with target/source 1.7 but I still get the
> issue with my generated fontbox jar... see mine on the left has the
> ByteBuffer return type causing the issue while on the right is the one
> from 2.0.11-1 correctly using Buffer as return type. Could you point me
> where I can find how the package is compiled? I'm looking here
> https://salsa.debian.org/java-team/libpdfbox2-java but I assume you
> don't just use the pom settings given the compile plugin is set with
> source/target 1.6
> I'm just trying to understand and I can't figure what settings are
> needed to get the same result
> Thanks

You could try the following: I assume you compile libpdfbox2-java on an
up-to-date Debian unstable system.

apt source libpdfbox2-java
cd libpdfbox2-java
debuild -us -uc

The debuild command is in devscripts.

We force source/target 1.7 with our maven-debian-helper tool since this
is the minimum version supported by OpenJDK 10. These steps should
ensure that you get the same result. It is important that you use
Debian's toolchain and packages, don't call Maven manually. Let me know
if this was helpful to you.

Regards,

Markus



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183: marked as done (libpdfbox2-java:)

2018-07-27 Thread Debian Bug Tracking System
Your message dated Fri, 27 Jul 2018 17:24:11 +0200
with message-id <74c0bdcd-9a97-df31-2f47-b4df8754e...@debian.org>
and subject line Re: Bug#899183:
has caused the Debian Bug report #899183,
regarding libpdfbox2-java:
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
899183: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899183
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.(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.(PDType1Font.java:146)
at 
org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.java:79)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.verifyOrCreateDefaults(PDAcroForm.java:128)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.(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
--- End Message ---
--- Begin Message ---
Version: 2.0.11-1

I just realized that the package was already recompiled against OpenJDK
10 where this bug has been fixed. So I guess we can close this bug
report. Ubuntu users should install the latest version of libpdfbox2-java.

Markus



signature.asc
Description: OpenPGP digital signature
--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183:

2018-07-27 Thread Markus Koschany

Am 27.07.2018 um 15:12 schrieb Andrea Vacondio:
> Why not compile with --release 7 ? This way the generated bundle should
> work with java 7 and above, or am I missing something?
> My app is hit by this
> https://bugs.launchpad.net/ubuntu/+source/pdfsam/+bug/1781130 and users
> are currently forced to run it with openjdk 8 given it requires openjfx
> like we discussed here
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886394
> Andrea

If I recall correctly this was a bug in OpenJDK 9 and changing the
compile target wouldn't change the outcome. I can recompile the package
with OpenJDK 10 now which should address this issue. However Ubuntu
users have to wait until the release of 18.10 or install the latest
version of libpdfbox2-java manually.

Markus



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183:

2018-07-27 Thread Andrea Vacondio
Why not compile with --release 7 ? This way the generated bundle should
work with java 7 and above, or am I missing something?
My app is hit by this
https://bugs.launchpad.net/ubuntu/+source/pdfsam/+bug/1781130 and users are
currently forced to run it with openjdk 8 given it requires openjfx like we
discussed here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886394
Andrea
__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183: sub...@bugs.debian.org

2018-05-21 Thread Martin Kittel
Hi Markus,

thanks for the prompt reply. I gave it another try with Java 11 and to
my surprise it is working there. After having a closer look at the Java
doc it turns out that the change in return value type from Buffer to
ByteBuffer is only present in Java 9 and has been reverted in 10 again.
While I don't understand why it is working with Java 11 but not with 1.7
I am happy to see that it is. I was afraid it would be broken for all
JDKs when compiled against Java 9.

Thanks again and best wishes,

Martin.

__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Processed: Re: Bug#899183: sub...@bugs.debian.org

2018-05-20 Thread Debian Bug Tracking System
Processing control commands:

> retitle -1 libpdfbox2-java:
Bug #899183 [libpdfbox2-java] sub...@bugs.debian.org
Changed Bug title to 'libpdfbox2-java:' from 'sub...@bugs.debian.org'.

-- 
899183: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899183
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183: sub...@bugs.debian.org

2018-05-20 Thread Markus Koschany
Control: retitle -1 libpdfbox2-java:


Hello,

Am 20.05.2018 um 14:23 schrieb Martin Kittel:
> 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)

thanks for the report. Unfortunately there is not much what we can do
here. I think it would be impractical to fix all packages by casting
ByteBuffer.flip to Buffer. By default we compile to source/target 1.7
but I can force -release 9 for libpdfbox2-java to make it clear that we
don't support older JREs in Buster. In fact we will release with OpenJDK
11 as the default JRE. If it works with an older runtime it is always a
bonus but isn't really supported by us.

Regards,

Markus



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#899183: sub...@bugs.debian.org

2018-05-20 Thread Martin Kittel
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.(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.(PDType1Font.java:146)
at 
org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.java:79)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.verifyOrCreateDefaults(PDAcroForm.java:128)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.(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

__
This is the maintainer address of Debian's Java team
.
 Please use
debian-j...@lists.debian.org for discussions and questions.