[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] No available updates



I am using P2 to update an installed product.  I can list available IUs in my update site and see that newer versions of my product features and plug-ins are available.  However, when I call the resolveModal method -- via the resolveUpdate method in the snippet below -- I am returned no available updates.


Here is console output of my query of the update site and a query of IUs running in my app’s profile.  I have listed a subset of IUs below in the interest of brevity.


Available IUs from the update site:

       IU id=Default version=

       IU id=ch.qos.logback.classic version=1.0.0

       IU id=ch.qos.logback.core version=1.0.0

       IU id=app version=1.0.1

       IU id=app.feature.feature.group version=

       IU id=app.feature.feature.jar version=


Currently installed IUs:

       IU id=a.jre.javase version=1.6.0

       IU id=ch.qos.logback.classic version=1.0.3

       IU id=ch.qos.logback.core version=1.0.3

       IU id=app version=1.0.0

       IU id=app.feature.feature.group version=

       IU id=app.feature.feature.jar version=


And below is the code snippet I am executing.  I always fall into the first if condition.


ProvisioningSession session = new ProvisioningSession(app);

Collection<IInstallableUnit> iusToUpdate = getAvailableUnits();

UpdateOperation operation = newUpdateOperation(session, iusToUpdate);

IStatus status = resolveUpdate(operation);

message = "Update resolution completed, status follows"; //$NON-NLS-1$


Results results = statusToResults(status);

if (results.getSubstatus() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) {

       return results;


if (results.getStatus() == Results.CANCEL) {

       throw new OperationCanceledException();


if (results.getStatus() == Results.ERROR) {

       return results;



And this is what I get back in my status object.


Status = 1, Substatus = 10000, Message = 'No updates were found.', Exception = null : ''


Any assistance or pointers are appreciated.