Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BFBBA200C73 for ; Wed, 10 May 2017 23:38:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC8A4160B9C; Wed, 10 May 2017 21:38:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB875160B99 for ; Wed, 10 May 2017 23:38:36 +0200 (CEST) Received: (qmail 73577 invoked by uid 500); 10 May 2017 21:38:34 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 73566 invoked by uid 99); 10 May 2017 21:38:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 21:38:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 14616180BB5 for ; Wed, 10 May 2017 21:38:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.498 X-Spam-Level: ** X-Spam-Status: No, score=2.498 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Dhy_5Ayaxrit for ; Wed, 10 May 2017 21:38:30 +0000 (UTC) Received: from ptcsmtp.ehi.com (ptcsmtp.ehi.com [12.43.140.23]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1F3F95F36B for ; Wed, 10 May 2017 21:38:30 +0000 (UTC) Received: from ptcsmtp.ehi.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 712B913028A for ; Wed, 10 May 2017 16:38:29 -0500 (CDT) Received: from ptcsmtp.ehi.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4C5341301A0 for ; Wed, 10 May 2017 16:38:29 -0500 (CDT) Received: from PLN-EXHUB-01.corp.erac.com (unknown [10.49.195.22]) by ptcsmtp.ehi.com (Postfix) with ESMTP for ; Wed, 10 May 2017 16:38:29 -0500 (CDT) Received: from pln-exedge-01.corp.erac.com (10.49.197.28) by PLN-EXHUB-01.corp.erac.com (10.42.192.51) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 10 May 2017 16:38:28 -0500 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (207.46.163.56) by exedge.ehi.com (10.49.183.28) with Microsoft SMTP Server (TLS) id 14.3.301.0; Wed, 10 May 2017 16:38:25 -0500 Received: from MWHPR11MB1631.namprd11.prod.outlook.com (10.172.55.8) by MWHPR11MB1629.namprd11.prod.outlook.com (10.172.54.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Wed, 10 May 2017 21:38:26 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([10.172.55.8]) by MWHPR11MB1631.namprd11.prod.outlook.com ([10.172.55.8]) with mapi id 15.01.1075.020; Wed, 10 May 2017 21:38:26 +0000 From: "Clark, Raymond C" To: "users@pdfbox.apache.org" Subject: Exception using PDFBox Thread-Topic: Exception using PDFBox Thread-Index: AdLJ1bLGn4RYoMXFS+WD2+KObKTl2w== Date: Wed, 10 May 2017 21:38:26 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pdfbox.apache.org; dkim=none (message not signed) header.d=none;pdfbox.apache.org; dmarc=none action=none header.from=ehi.com; x-originating-ip: [65.197.19.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR11MB1629;7:q7H9a5EOwwpDPoCJH819FbdM/+GelNdhQTseVBXpFrcrXYgqM6T8EHKOh7SSmVbccO7ZrChYi2o2viT09rrclTWPnVKz9NRDUxKN5YueTLbKQef+unrRODvXvwJAtiweSPQ/rS3taxb1AyVnKXmoSiUpCflgvKJ6V2Tf4MsnEmvKFwzLfKU4rnBt9NYUnG9kCg53tem93Tu19azyafChoZ1e8lc675atGLkd1o5VAH7QFH8qpCKfPERutNcYTHLEEAjeK8FcW3tN1QdgfTxNKm/ORFo8rDU9xdsu5boM9txPCEWu7My6W8u27o0oAGOWZeEQrQYITq1x1YCAj+6Pdg== x-ms-office365-filtering-correlation-id: 41cb77c1-de08-4e62-74e7-08d497ece47d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081);SRVR:MWHPR11MB1629; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(6072148);SRVR:MWHPR11MB1629;BCL:0;PCL:0;RULEID:;SRVR:MWHPR11MB1629; x-forefront-prvs: 03030B9493 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39410400002)(39400400002)(39830400002)(377424004)(8936002)(8676002)(1730700003)(81166006)(122556002)(66066001)(25786009)(478600001)(72206003)(19609705001)(110136004)(38730400002)(189998001)(2501003)(53936002)(55016002)(54896002)(74316002)(6306002)(99286003)(9686003)(50986999)(5640700003)(7116003)(33656002)(7696004)(86362001)(7736002)(5660300001)(6916009)(3480700004)(2900100001)(2906002)(77096006)(3280700002)(3660700001)(54356999)(6436002)(2351001)(3846002)(6116002)(102836003)(790700001);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR11MB1629;H:MWHPR11MB1631.namprd11.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_MWHPR11MB16311BE4278F893B4821068CA7EC0MWHPR11MB1631namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2017 21:38:26.5534 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5a9bb941-ba53-48d3-b086-2927fea7bf01 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1629 X-TM-AS-Product-Ver: IMSVA-9.1.0.1631-8.1.0.1062-23062.002 X-TM-AS-Result: No--17.998-30-31-10 X-TM-AS-MatchedID: 863828-703491-700398-847298-711109-702081-700272-121665-7 06249-704425-701053-702972-702157-706649-700274-139704-113220-708196-111604 -188119-700362-705718-700345-701827-700264-702497-700450-700732-701012-7013 06-709859-188038-111605-700074-303242-700079-703223-188093-148004-148036-14 8050-42003 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TM-AS-GCONF: 00 X-imss-scan-details: No--17.998-30-31-10 X-TMASE-Version: IMSVA-9.1.0.1631-8.1.1062-23062.002 X-TMASE-Result: 10--17.998500-10.000000 X-TMASE-MatchedRID: KlPGOruEel9/+iNkyaz33935+5/2RxqmWYu9PKwvg8867wHukzcC5SeC s84+hAdYneS1BhoTaTwhprfrLfaLjdUMAwTDOBnsiZXXNvjmJ4ZTWG5FkMj76u2bjZi+EXNnGtn VT0RdqRFg0rUa0hD2zmt7TMgv5mPvz+aAwi1TNggXGp2ggKr4hkdSfJOV3AHE+Cckfm+bb6DnEp 3ZTJj/1kcnoG2UPkiFzUPUEgDN/jnFQnJmsRVaUbxygpRxo469VPmKrQFPhdnMQPl8LlEOGu//v bMLiEkVnfCgnZR65gXocyiWIpet6KOUVKBdY9a49TVembY3XZL8BlbXy+O/WjqI/Q1zONHSW+v0 m5ycBq/OQf/S1XvtEBm20HYf5Ey/CRueYusp1xxjiC4p+/AIFjMffNZYCk3DxQetL66Hi22FAf5 iylR8Wnb4Bm7FqQnLXHn0K2CbIexZxuGjBHE907YUrknUqEL7yiBjGmb09NvNsmTIwLSke90pRI Fbsjfbb7mJ6HbhlhGAMuqetGVeto1kLJo+k6NyrFldG3ZH+DlIGo8bxrs5oUvzlzPS/NDLBOC/6 gC8EI7tUOtoEok7HPE86tP1/Cd+c+KfEQBgpgg= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 archived-at: Wed, 10 May 2017 21:38:37 -0000 --_000_MWHPR11MB16311BE4278F893B4821068CA7EC0MWHPR11MB1631namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I was making some changes to try and improve performance and I started gett= ing this exception: [log4j][ServiceQueueSyncProcessThread: '0' for queue ProductsStmtService][2= 017-05-10 16:24:25,354] org.apache.pdfbox.pdmodel.font.FileSystemFontProvid= er ERROR Could not write to font cache java.io.FileNotFoundException: /opt/tomcat/.pdfbox.cache (Permission denied= ) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:221) at java.io.FileOutputStream.(FileOutputStream.java:171) at java.io.FileWriter.(FileWriter.java:90) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.saveDiskCa= che(FileSystemFontProvider.java:288) at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.(Fil= eSystemFontProvider.java:226) at org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvide= r.(FontMapperImpl.java:132) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getProvider(FontMa= pperImpl.java:151) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMappe= rImpl.java:415) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFontBoxFont(Fo= ntMapperImpl.java:378) at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getFontBoxFont(Fon= tMapperImpl.java:352) at org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.ja= va:115) at org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.= java:76) at com.erac.bds.listener.products.pdf.PDFGenerator.buildFontMap(PDF= Generator.java:885) at com.erac.bds.listener.products.pdf.PDFGenerator.initializeFile(P= DFGenerator.java:100) at com.erac.bds.listener.products.Products.processTemplate(Products= .java:140) at com.erac.bds.listener.products.Products.processOtherTypeFileTemp= late(Products.java:132) at com.erac.bds.listener.products.Products.processMessage(Products.= java:98) at com.erac.bds.listener.BaseListener.process(BaseListener.java:78) at com.erac.servicequeue.ServiceMessageProcessor.processASync(Servi= ceMessageProcessor.java:81) at com.erac.servicequeue.sync.ServiceQueueSyncProcess.run(ServiceQu= eueSyncProcess.java:216) The PDFGenerator.java:885 line is the line that sets up the HELVETICA font: try { font =3D PDType1Font.HELVETICA; fontBold =3D PDType1Font.HELVETICA_BOLD; } catch(Exception e) { throw new ProductRequestException("Unable to find Fonts= /arial.ttf", e); } I wasn't getting this before, what would be causing pdfbox to try and write= out a cache file? Thank you, Ray ________________________________ CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are i= ntended solely for the use of the individual or entity to whom they are add= ressed and may contain confidential and privileged information protected by= law. If you received this e-mail in error, any review, use, dissemination,= distribution, or copying of the e-mail is strictly prohibited. Please noti= fy the sender immediately by return e-mail and delete all copies from your = system. --_000_MWHPR11MB16311BE4278F893B4821068CA7EC0MWHPR11MB1631namp_--