felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-701) Installation failure when updating bundles with required bundles
Date Wed, 27 Aug 2008 18:47:44 GMT
Installation failure when updating bundles with required bundles
----------------------------------------------------------------

                 Key: FELIX-701
                 URL: https://issues.apache.org/jira/browse/FELIX-701
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
            Reporter: Felix Meschberger


Consider a system with two bundles installed:

   Bundle A, Version 1, imports package B.x with version 1, started
   Bundle B, Version 1, exports package B.x with version 1, started

Now, Bundle A should be updated to version 2:

   Bundle A, Version 2, imports package B.x with version 2

This causes OBR to select version 2 of Bundle B to satisfy the requirement of version 2 of
Bundle A.

   Bundle B, Version 2, exports package B.x with version 2

Now, the ResolverImpl will try to update Bundle A with the new version, which fails because
Bundle A is automatically started again by the framework but does not resolve due to the version
mismatch on the package import. This throws an exception causing the ResolverImpl to abort
the deployment.

A simple fix to this problem is, that the ResolverImpl temporarily stops Bundle A before updating
it and starting Bundle A again after the update. This allows the resolver to continue with
the deployment of the required bundle and finally starting everything again.


-- 
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