You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Martin Zdila (JIRA)" <ji...@apache.org> on 2010/03/10 11:13:27 UTC
[jira] Created: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
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
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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Martin Zdila (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845364#action_12845364 ]
Martin Zdila commented on FELIX-2184:
-------------------------------------
hmm .. I can't find org.apache.felix.configadmin-2.0.4.jar
> 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.<init>(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.
[jira] Resolved: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-2184.
--------------------------------------
Fix Version/s: configadmin-1.2.8
Resolution: Fixed
In Rev. 995005:
* Only validate keys to be non-empty strings upon Configuration.update
* Ensure in the FilePersistenceManager to write and read any non-empty strings as property names
> 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
> Fix For: configadmin-1.2.8
>
> 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.<init>(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.
[jira] Closed: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed FELIX-2184.
------------------------------------
Closing issues after Configuration Admin 1.2.8 release
> 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
> Fix For: configadmin-1.2.8
>
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844503#action_12844503 ]
Felix Meschberger commented on FELIX-2184:
------------------------------------------
According to Section 5.2.6, Persistent Identifier (PID), a PID is defined the same as a symbolic-name as defined in Section 1.3.2, General Syntax Definitions (all in the R 4.2 Core Spec):
digit ::= [0..9]
alpha ::= [a..zA..Z]
alphanum ::= alpha | digit
token ::= ( alphanum | '_' | '-' )+
symbolic-name ::= token('.'token)*
Thus a blank space is not a valid character in a PID.
Still, I agree, the error message is not very helpful and should be improved.
> 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
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845222#action_12845222 ]
Felix Meschberger commented on FELIX-2184:
------------------------------------------
Looking at the attached org_apache_felix_cm_impl_DynamicBindings.config file it looks like there are a number of illegal keys in it:
...
File Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
SMTP Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
...
Socket Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
Telnet Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
Jabber Service="file:/home/martin/gofer/cluster/node1/bundles/gofer-jabber.jar"
...
Socket Hub Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
...
Syslog Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
...
NT Event Log Appender="file:/home/martin/gofer/cluster/node1/bundles/gofer-logging.jar"
...
These properties are illegal since according to the spec a property name must not contain blanks:
property-name ::= public | private
public ::= symbolic-name // See 1.3.2
private ::= '.' symbolic-name
Apache Felix Configuration Admin 2.0.4 does not allow you to set such properties.
Has this .config file been prepared manually ? [ It looks so, because there are a few properies missing, which are written by the Felix Configuration Admin implementation ]
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Martin Zdila (JIRA)" <ji...@apache.org>.
[ 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:
<service ref="fileAppenderFactory">
<interfaces>
<bean:value>org.osgi.service.cm.ManagedServiceFactory</bean:value>
</interfaces>
<service-properties>
<bean:entry key="service.pid" value="File Log Appender"/>
</service-properties>
</service>
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844506#action_12844506 ]
Felix Meschberger commented on FELIX-2184:
------------------------------------------
Looking at the code, I wonder how you manage to store configuration keys with spaces in them ?
> 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.<init>(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.
[jira] Assigned: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reassigned FELIX-2184:
----------------------------------------
Assignee: Felix Meschberger
> 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.<init>(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.
[jira] Updated: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Martin Zdila (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Zdila updated FELIX-2184:
--------------------------------
Attachment: org_apache_felix_cm_impl_DynamicBindings.config
> 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
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845385#action_12845385 ]
Felix Meschberger commented on FELIX-2184:
------------------------------------------
Latest ist 1.2.4, actually --- sorry I confused version numbers.
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845371#action_12845371 ]
Felix Meschberger commented on FELIX-2184:
------------------------------------------
Oops, I misread the version you mentioned.
In addition, I was taught, that I read the spec to narrowly: The syntax definition for service PIDs and configuration keys are only recommendations (wording is SHOULD) and not prescriptions. Thus 2.0.4 implementation of requiring the recommendation is actually wrong !
> 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.<init>(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.
[jira] Commented: (FELIX-2184) PID with space causes ERROR log, but
otherwise works
Posted by "Martin Zdila (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845362#action_12845362 ]
Martin Zdila commented on FELIX-2184:
-------------------------------------
No, this config is not created manually. I are using configadmin-1.2.4 (as mentioned in affected versions), but i'll give 2.0.4 a try. Meanwhile I fixed those invalid names in our code.
> 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.<init>(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.