From user-return-23170-archive-asf-public=cust-asf.ponee.io@poi.apache.org Sun Sep 30 20:53:28 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 40A5518064A for ; Sun, 30 Sep 2018 20:53:28 +0200 (CEST) Received: (qmail 59380 invoked by uid 500); 30 Sep 2018 18:53:22 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 59328 invoked by uid 99); 30 Sep 2018 18:53:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2018 18:53:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 342EB1A15AB for ; Sun, 30 Sep 2018 18:53:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.993 X-Spam-Level: * X-Spam-Status: No, score=1.993 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.105, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id oXjmbjamqNxZ for ; Sun, 30 Sep 2018 18:53:19 +0000 (UTC) Received: from mail-it1-f194.google.com (mail-it1-f194.google.com [209.85.166.194]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3C2615F10C for ; Sun, 30 Sep 2018 18:53:19 +0000 (UTC) Received: by mail-it1-f194.google.com with SMTP id p64-v6so1532227itp.0 for ; Sun, 30 Sep 2018 11:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=uLvRNM/Crle8DGKUPdWXq2lKd5Ea7CbkHnAFPQJoGm4=; b=C9LAHl3YrxYTpt8ps6LEKycoOC5fpUG4mEnkSmYwrAHcoq8llkFAgCsqZhyIyxPhiE ROTasmvjRAmBsTxq/Y24D2lptZln/LbOyVljsB0dL6FfJ8uRnf/K9zT442JzMeOweBf1 B+2Xs6rWLaVzvoM8w/ifseyVmWowXMqqT2Nvp29w1pcB37IZbs/HXPnsOHeW7zwS5uAP ThsR8Azxf/anfQcbjs0rec8WzBmcmIUnWYWAZi6tNaNhYqwZ2tO2U6DSAy0ktf0q9NE8 rYpTRQdn261OI3Gew2OQuUTytjPnS6iUp998kDarioHNjdyYkyCHNwDPMYejTnz+HfHb 3Ibg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=uLvRNM/Crle8DGKUPdWXq2lKd5Ea7CbkHnAFPQJoGm4=; b=PBmjVz2n5UGBEnJHBUVVLMlJ3bnRYBPavPcUwZgB0i++UbXhzLCBRxiw0jQ3kefpYW vqridxUDsQrVQ2NkpyNnBYneOPevUoVPsG7iVl9GloqPXU1fug+JRrlwq7eChdUJgnnU SBocj/r8q2roF2V80GC5dRgNzGjb0jJ4KQNrVK1eyrp3OuR+vEZQIINGKFhzCGbUytaD swTrpHywRNwfZNMjyrZo6GS1KFbzO5UDI0DD1inu2xc7dPF+pm+D+59D4yIUxTKzJ3k9 1vY0IJF3FDlKN4w2bsS4bNpfyExNuriVURV/gbl3fikd4ME3GyAbYx0S9GWBhWcuGFLY /S8g== X-Gm-Message-State: ABuFfohQerhkD3kpGm6PfF8Rc2plTDTtKJoGCwQBuHgXpsb29x4G27ky 05PkIbAlOs1PTz2EMs2Y8aLBYQsf3BKS28vQU30pCw== X-Google-Smtp-Source: ACcGV60ZIlFX8SX0QcKCpE2OEYzjsGEeWrynLkXUrkvdC8k7t55uehDl7PQY/0mMfNfwhILm9e86pMP1Sj0/PNSL77Q= X-Received: by 2002:a24:4486:: with SMTP id o128-v6mr8100434ita.23.1538333598288; Sun, 30 Sep 2018 11:53:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?SsO2cm4gRnJhbmtl?= Date: Sun, 30 Sep 2018 20:53:06 +0200 Message-ID: Subject: Re: Not on Android: Provider com.bea.xml.stream.EventFactory not found To: POI Users List Content-Type: multipart/alternative; boundary="000000000000ac26ff05771b330a" --000000000000ac26ff05771b330a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I should add that this used to work with Apache POI 3.17 On Sun, Sep 30, 2018 at 6:57 PM J=C3=B6rn Franke wro= te: > Hi, > > I get the following exception when I run my POI based application on a > certain platform (Apache Flink): > > javax.xml.stream.FactoryConfigurationError: Provider > com.bea.xml.stream.EventFactory not found > > This is not on Android and it is POI 4.0.0 using JDK8. The same code runs > fine on other platforms (e.g. MR, Hive, Spark) (the only difference is th= at > different platforms of course have different jars in the classpath). > > It is only when writing a file (reading is no problem!). > > I suspect some strange dependency on the classpath (jaxb, xmlbeans 2.x > etc.). > > Any idea on how I can find more easily the root cause? > > MSExcelWriter: > https://github.com/ZuInnoTe/hadoopoffice/blob/master/fileformat/src/main/= java/org/zuinnote/hadoop/office/format/common/writer/msexcel/MSExcelWriter.= java > > Full stack trace: > Caused by: javax.xml.stream.FactoryConfigurationError: Provider > com.bea.xml.stream.EventFactory not found > > at > javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) > > > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) > > > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) > > > at > javax.xml.stream.XMLEventFactory.newInstance(XMLEventFactory.java:30) > > > at > org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarsha= ller.(PackagePropertiesMarshaller.java:41) > > at > org.apache.poi.openxml4j.opc.OPCPackage.(OPCPackage.java:140) > > > at > org.apache.poi.openxml4j.opc.ZipPackage.(ZipPackage.java:78) > > > at > org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:365) > > > at > org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:4= 95) > > > at > org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:261) > > > at > org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:257) > > > at > org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:245) > > > at > org.zuinnote.hadoop.office.format.common.writer.msexcel.MSExcelWriter.cre= ate(MSExcelWriter.java:177) > > > at > org.zuinnote.hadoop.office.format.common.OfficeWriter.create(OfficeWriter= .java:96) > > > at > org.zuinnote.flink.office.AbstractSpreadSheetFlinkFileOutputFormat.open(A= bstractSpreadSheetFlinkFileOutputFormat.java:94) > > at > org.apache.flink.runtime.operators.DataSinkTask.invoke(DataSinkTask.java:= 202) > > > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:703) > > > at java.lang.Thread.run(Thread.java:748) > > > Caused by: java.lang.ClassNotFoundException: > com.bea.xml.stream.EventFactory > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > > at > org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders= $ChildFirstClassLoader.loadClass(FlinkUserCodeClassLoaders.java:129) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > > at > javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:68) > > > ... 17 more > > > --000000000000ac26ff05771b330a--