felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilo Planz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1165) When restarting a bundle, the config admin reports "Configuration ... has already been delivered", and the bundle receives no configuration.
Date Tue, 23 Jun 2009 03:00:08 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722940#action_12722940
] 

Thilo Planz commented on FELIX-1165:
------------------------------------

I think I am running into the same problem, even without using felix.auto.start.

I have both bundles and configuration managed by Felix FileInstall 
(and I am using org.osgi.framework.storage.clean = onFirstInit to get a fresh bundle cache
every time).

When a bundle gets updated, it does not receive configuration information.

I need to "touch" the configuration file to trigger configuration.

Could this be related to the weird bundle location that FileInstall sets 
(  /C:/bundles/org.osgi.compendium-1.2.0.jar without any protocol, so that the bundle cannot
be updated the update shell command) ?

Please raise the priority to something more than "minor".


> When restarting a bundle, the config admin reports "Configuration ... has already been
delivered", and the bundle receives no configuration.
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1165
>                 URL: https://issues.apache.org/jira/browse/FELIX-1165
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>    Affects Versions: configadmin-1.0.1, configadmin-1.0.4, configadmin-1.0.8, configadmin-1.0.10
>         Environment: Windows XP, JDK 1.6.0_10, Felix 1.8.0, configadmin 1.0.10
>            Reporter: James Hanson
>            Priority: Minor
>         Attachments: sample.zip
>
>
> When restarting a bundle, the configuration admin reports "Configuration ... has already
been delivered", and the bundle receives no configuration.
> As far as I can tell this only occurs if a bundle is installed and started by the felix.auto.start.1
property in the config.properties.  If Felix is restarted and the bundle is loaded from the
cache, the problem disappears.
> Test setup:
> Create a "configurable" bundle, implement ManagedService and register as a ManagedService
with a PID from the BundleActivator start() method.
> Create a "configurator" bundle and send a configuration to the PID.
> Extract Felix and add the Felix config admin bundle to the felix.auto.start.1 property
in conf/config.properties
> Add the two new bundles to the felix.auto.start.1 property.
> Start Felix.
> Stop the "configurable" bundle, and start it again.
> * If the configuration is sent from the "configurator", the bundle receives it.
> * If felix is restarted, the problem disappears unless the felix-cache is deleted.
> This can be reproduced with felix 1.8.0 using the example at:
> http://www.dynamicjava.org/articles/osgi-compendium/configuration-admin-service
> See also bug FELIX-516.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message