Hello;

maybe you could try by specifying a location "?" when creating the factory
configuration, something like:

    Configuration config =
this.configurationAdmin.createFactoryConfiguration("com.my.osgi.MyComponent",
"?")

regards
Pierre


On Wed, Jul 18, 2018 at 3:50 PM, imranrazakhan <imranrazak...@gmail.com>
wrote:

> I tried to use configurationAdmin in my Pax-Exam test class with below code
>
>     Configuration config =
> this.configurationAdmin.createFactoryConfiguration("
> com.my.osgi.MyComponent");
>     Hashtable props = new Hashtable();
>     props.put("myprop", "1");
>
>     config.update(props);
>
> Error if following
>
>     2018-07-18T15:42:20,201 | ERROR | CM Event Dispatcher (Fire
> ConfigurationEvent:
> pid=com.my.osgi.MyComponent.59c30147-0aea-412f-ad2b-52decc4482ee) |
> ipojo
> | 22 - org.apache.felix.ipojo - 1.12.1.patch20180226 | [ERROR] iPOJO
> Configuration Admin listener : Cannot use configuration
> pid=com.my.osgi.MyComponent.59c30147-0aea-412f-ad2b-52decc4482ee for
> bundle
> mvn:com.my.osgi/my-component/2.0.5-SNAPSHOT because it belongs to bundle
> local
>
>
>
>
>
> --
> Sent from: http://apache-felix.18485.x6.nabble.com/Apache-Felix-Users-
> f4833200.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>

Reply via email to