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 61212200CF4 for ; Sun, 3 Sep 2017 10:57:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 564501644B8; Sun, 3 Sep 2017 08:57:06 +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 9C5171644B7 for ; Sun, 3 Sep 2017 10:57:05 +0200 (CEST) Received: (qmail 43951 invoked by uid 500); 3 Sep 2017 08:57:04 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 43940 invoked by uid 99); 3 Sep 2017 08:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Sep 2017 08:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A9B0FC0600 for ; Sun, 3 Sep 2017 08:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id IbuXL2t8kFEd for ; Sun, 3 Sep 2017 08:56:59 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id ACA025FB4E for ; Sun, 3 Sep 2017 08:56:58 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 8B055E06BF for ; Sun, 3 Sep 2017 08:56:56 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 0069560754; Sun, 3 Sep 2017 08:56:54 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 61478] POI OOXML-Schema lookup uses wrong classloader Date: Sun, 03 Sep 2017 08:56:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POI Overall X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: kwright@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Sun, 03 Sep 2017 08:57:06 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D61478 --- Comment #22 from Karl Wright --- If there are no invocations of Class.forName(String, boolean, ClassLoader), then there's no way the POI libraries can be a problem. But a glance at the code shows that that's not entirely true; the POIXMLTypeLoader class does t= he latter. It may be the case that the only reason for that code was written was to wo= rk around this problem when it was discovered by others (e.g. #60226). But, in that case, the problem might well be that some other dependency, e.g. xmlbe= ans, is doing the wrong thing and you guys need to request a fix from them. Here are some data points: - Running all poi jars and their dependencies at the "connectors" level with poi-3.15 *definitely* uses the wrong classloader at some point -- probably = the thread classloader - The testbed I constructed and uploaded, on the other hand, *succeeds* - a= nd that setup mimics MCF's classloader setup, but without Tika in between the = MCF "connector" and the poi jars Maybe the right approach is to analyze the difference in code paths between these two ways of calling into poi and see what differences there are, if a= ny?=20 The stack traces are helpful here, yes, but maybe also looking at the testb= ed I uploaded could provide some insight into a way of getting into poi that does not seem to have the problem? The only thing I'm pretty sure of is that it probably isn't Tika that does this, because it *does* manage to find the poi classes, just not those in poi-ooxml-schemas. --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org