From dev-return-60203-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed Dec 12 17:58:53 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3827818064E for ; Wed, 12 Dec 2018 17:58:53 +0100 (CET) Received: (qmail 80268 invoked by uid 500); 12 Dec 2018 16:58:46 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 79900 invoked by uid 99); 12 Dec 2018 16:58:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2018 16:58:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 37F39CAB75 for ; Wed, 12 Dec 2018 16:58:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id YtTl2vojDA9d for ; Wed, 12 Dec 2018 16:58:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9ADB461050 for ; Wed, 12 Dec 2018 16:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E503BE1013 for ; Wed, 12 Dec 2018 16:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 997DD25312 for ; Wed, 12 Dec 2018 16:48:00 +0000 (UTC) Date: Wed, 12 Dec 2018 16:48:00 +0000 (UTC) From: "Thomas Zimmermann (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-4400) jlink loading police.afm files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4400?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D167= 19172#comment-16719172 ]=20 Thomas Zimmermann commented on PDFBOX-4400: ------------------------------------------- Yes, after creating all those module descriptors, all modules are fed to jl= ink to create a modular runtime. And you should definitely try the snapshot, 2.0.13 doesn't include the fix = yet. > jlink loading police.afm files > ------------------------------ > > Key: PDFBOX-4400 > URL: https://issues.apache.org/jira/browse/PDFBOX-4400 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.13 > Environment: java11 jlink windows moditect > Reporter: kevin guerin > Assignee: Tilman Hausherr > Priority: Major > Labels: jdk9 > Fix For: 2.0.14, 3.0.0 PDFBox > > > hello everybody, > =C2=A0 > I've got a problem with this trace on jlink on java11 (it works without j= link) > =C2=A0 > {code:java} > // Exception in thread "JavaFX Application Thread" java.lang.ExceptionInI= nitializerError > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.PDFont.(PDFont.java:112) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.PDType0Font.(PDType0Font.java:176) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.PDResources.getFont(PDResources.java:146) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java= :60) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848= ) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.j= ava:503) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.rendering.PageDrawer.drawPage(PageDrawer.java:254) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:245) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:179) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > Caused by: java.lang.RuntimeException: java.io.IOException: org/apache/pd= fbox/resources/afm/Courier-Bold.afm not found > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.Standard14Fonts.(Standard14Fonts.java:97) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ... 36 more > Caused by: java.io.IOException: org/apache/pdfbox/resources/afm/Courier-B= old.afm not found > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:134) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:103) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at pdfbox@2.0.13/org.apache.pd= fbox.pdmodel.font.Standard14Fonts.(Standard14Fonts.java:50) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ... 36 more > {code} > =C2=A0 > I think the problem comes from the fact that while using jlink the classp= ath does not exist and it need to be loaded by an another way that the clas= spath one. > =C2=A0 > the path should look like something like : > {code:java} > // Path path =3D Paths.get(URI.create("jrt:/pdfbox/org/apache/resources/a= fm/police.afm")); > {code} > modules here is managed by moditect (maven plugin to help creating module= -info descriptor) and contain all dependancies of the project -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org