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 1CDDE200BC0 for ; Tue, 15 Nov 2016 15:05:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1B6EE160B02; Tue, 15 Nov 2016 14:05:00 +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 4F24E160AD8 for ; Tue, 15 Nov 2016 15:04:59 +0100 (CET) Received: (qmail 10652 invoked by uid 500); 15 Nov 2016 14:04:58 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 10630 invoked by uid 99); 15 Nov 2016 14:04:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 14:04:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 603DD2C4C73 for ; Tue, 15 Nov 2016 14:04:58 +0000 (UTC) Date: Tue, 15 Nov 2016 14:04:58 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ARIES-1600) 'Unknown namespace for jpa' in JpaNsHandler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Nov 2016 14:05:00 -0000 [ https://issues.apache.org/jira/browse/ARIES-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider resolved ARIES-1600. ---------------------------------------- Resolution: Fixed I already fixed this but unfortunately put it into the wrong commit. So the message is misleading. https://github.com/apache/aries/commit/11515bd4178ecbab68285ad4959199785315e838 Basically the NamespaceHandler should not throw an exception when it is given a wrong namespace but rather return null. So this should work in jpa-2.5.0. Can you check if it works there? > 'Unknown namespace for jpa' in JpaNsHandler > ------------------------------------------- > > Key: ARIES-1600 > URL: https://issues.apache.org/jira/browse/ARIES-1600 > Project: Aries > Issue Type: Bug > Components: JPA > Affects Versions: jpa-2.4.0 > Reporter: Rafael Bedia > Assignee: Christian Schneider > Fix For: jpa-2.5.0 > > Attachments: unknown-namespace-error.txt > > > The IllegalArgumentException "Unknown namespace for jpa: " is being triggered in org.apache.aries.jpa.blueprint.impl.JpaNsHandler.getSchemaLocation. > The bundle I am deploying has several extension namespaces defined in the Blueprint XML. I don't have a minimal example that exhibits this problem but I might be able to create one if necessary. > I'm not sure why the JpaNsHandler is being passed a namespace that it can't handle. However all other implementations of NamespaceHandler that I have seen return null if they are passed a namespace they do not recognize. When I replaced the IllegalArgumentException with returning null the bundle successfully started. > This is related to ARIES-1403. -- This message was sent by Atlassian JIRA (v6.3.4#6332)