Hi all,

I have a question or I need a clarification on bundlerepository bundle as I
have noticed strange behavior after upgrading bundlerepository from version
2.0.2 to 2.0.4.
In general I use RepositoryAdmin service to dynamically register bundles
according to current application profile.
The approach is pretty simple: I find RepositoryAdmin service, from which I
get Resolver through resolver() method,
and later call deploy(Resolver.START) method to start bundles.

Unfortunately after upgrading from version 2.0.2 to 2.0.4 I get the
following exception:

ERROR: Bundle n3g.osgi.launcher [1] EventDispatcher: Error during dispatch.
(java.lang.ClassCastException:
org.apache.felix.bundlerepository.impl.LazyLocalResourceImpl cannot be cast
to org.apache.felix.bundlerepository.impl.LocalResourceImpl)
java.lang.ClassCastException:
org.apache.felix.bundlerepository.impl.LazyLocalResourceImpl cannot be cast
to org.apache.felix.bundlerepository.impl.LocalResourceImpl
at
org.apache.felix.bundlerepository.impl.ResolverImpl.findUpdatableLocalResource(ResolverImpl.java:703)
at
org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:569)

So is it a bug or something substantial has changes between the versions?

Kind regards,

Marek

Reply via email to