Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 18735 invoked from network); 12 Mar 2010 15:42:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Mar 2010 15:42:25 -0000 Received: (qmail 16646 invoked by uid 500); 12 Mar 2010 15:41:48 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 16607 invoked by uid 500); 12 Mar 2010 15:41:48 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 16599 invoked by uid 99); 12 Mar 2010 15:41:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Mar 2010 15:41:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Mar 2010 15:41:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21642234C4BE for ; Fri, 12 Mar 2010 15:41:27 +0000 (UTC) Message-ID: <32695047.228451268408487127.JavaMail.jira@brutus.apache.org> Date: Fri, 12 Mar 2010 15:41:27 +0000 (UTC) From: "Martin Zdila (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-2184) PID with space causes ERROR log, but otherwise works In-Reply-To: <436765874.174251268216007933.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844546#action_12844546 ] Martin Zdila commented on FELIX-2184: ------------------------------------- > Looking at the code, I wonder how you manage to store configuration keys with spaces in them ? I am using spring-osgi 1.2. Configuration snippet: org.osgi.service.cm.ManagedServiceFactory > PID with space causes ERROR log, but otherwise works > ---------------------------------------------------- > > Key: FELIX-2184 > URL: https://issues.apache.org/jira/browse/FELIX-2184 > Project: Felix > Issue Type: Bug > Components: Configuration Admin > Affects Versions: configadmin-1.2.4 > Environment: Linux bono 2.6.32-16-generic #24-Ubuntu SMP Sat Mar 6 12:33:21 UTC 2010 i686 GNU/Linux > java version "1.6.0_18" > Java(TM) SE Runtime Environment (build 1.6.0_18-b07) > Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing) > Reporter: Martin Zdila > Assignee: Felix Meschberger > Attachments: org_apache_felix_cm_impl_DynamicBindings.config > > > Reading the specification I am not sure what characters are really allowed for PIDs. We are using PIDs with spaces. All works fine, just the exception is logged upon startup. I will attach the org_apache_felix_cm_impl_DynamicBindings.config file that causes the parsing error. > *ERROR* Failure setting up dynamic configuration bindings > java.io.IOException: Unexpected token 78; expected: 61 (line=2, pos=10) > at org.apache.felix.cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:652) > at org.apache.felix.cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java:273) > at org.apache.felix.cm.file.ConfigurationHandler.read(ConfigurationHandler.java:236) > at org.apache.felix.cm.file.FilePersistenceManager._load(FilePersistenceManager.java:542) > at org.apache.felix.cm.file.FilePersistenceManager.load(FilePersistenceManager.java:487) > at org.apache.felix.cm.impl.DynamicBindings.(DynamicBindings.java:51) > at org.apache.felix.cm.impl.ConfigurationManager.start(ConfigurationManager.java:211) > at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661) > at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1678) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1124) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.