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 686B3200B98 for ; Mon, 19 Sep 2016 03:04:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 67107160AC3; Mon, 19 Sep 2016 01:04:22 +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 ADB2D160ADF for ; Mon, 19 Sep 2016 03:04:21 +0200 (CEST) Received: (qmail 84262 invoked by uid 500); 19 Sep 2016 01:04:20 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 84240 invoked by uid 99); 19 Sep 2016 01:04:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 01:04:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9B9962C1B77 for ; Mon, 19 Sep 2016 01:04:20 +0000 (UTC) Date: Mon, 19 Sep 2016 01:04:20 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-4124) feature config installer adds property to config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 01:04:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4124?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 updated KARAF-4124: ---------------------------------------- Fix Version/s: (was: 4.0.7) 4.0.8 > feature config installer adds property to config > ------------------------------------------------ > > Key: KARAF-4124 > URL: https://issues.apache.org/jira/browse/KARAF-4124 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.3 > Reporter: Markus Rathgeb > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.1.0, 4.0.8 > > > The element in a feature XML allows a feature to create and/or = populate a configuration (identified by a configuration PID). > The "FeatureConfigInstaller" adds a custom property to the configuration. > key =3D "org.apache.karaf.features.configKey" > value =3D result of function call "createConfigurationKey(pid[0], pid[1])= " > There are bundles that cannot handle additional properties in the configu= ration. > For example: > * using Aries JPA + Hiberante + h2 > * the configuration is installed by a feature and a realted config entry > * this will result in a non working setup > {noformat} > Caused by: org.h2.jdbc.JdbcSQLException: Unsupported connection setting "= ORG.APACHE.KARAF.FEATURES.CONFIGKEY" [90113-172] > at org.h2.message.DbException.getJdbcSQLException(DbException.jav= a:329) > at org.h2.message.DbException.get(DbException.java:169) > at org.h2.message.DbException.get(DbException.java:146) > at org.h2.engine.ConnectionInfo.readSettingsFromURL(ConnectionInf= o.java:266) > at org.h2.engine.ConnectionInfo.(ConnectionInfo.java:77) > at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:90) > at org.h2.Driver.connect(Driver.java:73) > at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.j= ava:187) > at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.jav= a:323) > at org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory= .createConnection(DataSourceXAConnectionFactory.java:112) > at org.apache.commons.dbcp2.managed.PoolableManagedConnectionFact= ory.makeObject(PoolableManagedConnectionFactory.java:66) > at org.apache.commons.pool2.impl.GenericObjectPool.create(Generic= ObjectPool.java:868) > at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(G= enericObjectPool.java:435) > at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(G= enericObjectPool.java:363) > at org.apache.commons.dbcp2.managed.ManagedConnection.updateTrans= actionStatus(ManagedConnection.java:127) > ... 132 more > {noformat} > There is a conditional branch in the "findExistingConfiguration" function= to filter (find) the configuration using that property instead of the serv= ice.pid (this is another conditional branch). > Is there any reason for using that property? > I changed the "FeatureConfigInstaller" to not append that property and th= e above example is working now. -- This message was sent by Atlassian JIRA (v6.3.4#6332)