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 EF497200C80 for ; Thu, 25 May 2017 16:50:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDDB9160BCA; Thu, 25 May 2017 14:50:07 +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 3FB67160BC7 for ; Thu, 25 May 2017 16:50:07 +0200 (CEST) Received: (qmail 76129 invoked by uid 500); 25 May 2017 14:50:06 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 76120 invoked by uid 99); 25 May 2017 14:50:06 -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; Thu, 25 May 2017 14:50:06 +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 0CA6DCFA9B for ; Thu, 25 May 2017 14:50:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 c4KCU5NyDcu8 for ; Thu, 25 May 2017 14:50:05 +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 32FB75FBC1 for ; Thu, 25 May 2017 14:50:05 +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 9C5F1E0BDF for ; Thu, 25 May 2017 14:50:04 +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 1B7A921B57 for ; Thu, 25 May 2017 14:50:04 +0000 (UTC) Date: Thu, 25 May 2017 14:50:04 +0000 (UTC) From: "Jeremy Gosling (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-11286) Imported Xquery modules will not resolve using classpath - Regression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 May 2017 14:50:08 -0000 [ https://issues.apache.org/jira/browse/CAMEL-11286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024811#comment-16024811 ] Jeremy Gosling commented on CAMEL-11286: ---------------------------------------- I have a unit test and a one line fix which works on the 2.15.x, 2.16.x and 2.17.x branches, but fails on 2.18.x and master with a null point exception deep within Saxon. This appears to be related to the updated version of the Saxon HE library used. The fix for the original enhancement ([CAMEL-4285]) works with any version 9.5.x (9.5.1-5 is specified for Camel 2.15, 2.16 and 2.17) but not 9.6.0-1 onwards. From Camel 2.18.x onwards various iterations of 9.7 are used, which I'm assuming requires some change to the implementation of the net.sf.saxon.lib.ModuleURIResolver interface. I'm currently looking into this. > Imported Xquery modules will not resolve using classpath - Regression > --------------------------------------------------------------------- > > Key: CAMEL-11286 > URL: https://issues.apache.org/jira/browse/CAMEL-11286 > Project: Camel > Issue Type: Bug > Components: camel-saxon > Affects Versions: 2.15.0, 2.19.0 > Reporter: Jeremy Gosling > Priority: Minor > Fix For: 2.20.0 > > > In Camel 2.15.0 the camel-saxon component was refactored to include an XQueryEndpoint class which now instanciates the XQueryBuilder object in the doStart() method. It then sets the values of various properties on this object, but misses out the moduleURIResolver. This is therefore null when the query is evaluated and not used by the net.sf.saxon.query.XQueryExpression to resolve xquery module imports as original described in CAMEL-4285. -- This message was sent by Atlassian JIRA (v6.3.15#6346)