Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 4 and p2 (An error occurred while collecting items to be installed)
Eclipse 4 and p2 [message #1005171] Thu, 24 January 2013 10:30 Go to previous message
Beat Schaller is currently offline Beat Schaller
Messages: 31
Registered: July 2009
Member
We are working with a pure E4 Application.

After reading some posts and all the necessary stuff to get working the p2 update we still have a problem.
http://www.ralfebert.de/blog/eclipsercp/p2_updates_tutorial_36/
http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application
http://aniefer.blogspot.ch/2009/03/building-p2-rcp-products-in-eclipse.html
http://www.vogella.com/articles/EclipseP2Update/article.html

All seems to work as long as we test on a file repository. The update is done, no error.

But if we copy the repository to our Web-Server we got an error. The first part - check if an update is needed works...
        final UpdateOperation operation = new UpdateOperation(session);
        final SubMonitor sub = SubMonitor.convert(monitor, "Checking for application updates...", 200);
        IStatus status = operation.resolveModal(sub.newChild(100));
        if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) {
            LOG.debug("nothing to update");
            return status;
        }
        if (status.getSeverity() == IStatus.CANCEL) {
            LOG.debug("update - cancel");
            throw new OperationCanceledException();
        }
        if (status.getSeverity() != IStatus.ERROR) {
            LOG.debug("update - install");
            final ProvisioningJob job = operation.getProvisioningJob(null);
            status = job.runModal(sub.newChild(100));
            if (status.getSeverity() == IStatus.CANCEL) {
                LOG.debug("update - install - cancel");
                throw new OperationCanceledException();
            } else if (status.getSeverity() == IStatus.OK) {
                LOG.debug("update - install - ok");
            } else {
                LOG.debug("update - install - " + status.getSeverity() + "/" + status.getMessage());
            }
        }


after the check in
status = job.runModal(sub.newChild(100));
we got an error: >> An error occurred while collecting items to be installed

Why there is a difference between file and http?? no other message
And - the plugin to update is now on the client side, but the client allways tries to update...

Any hints?

Thx
Beat
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Not able to create new e4 application project
Next Topic:Undocking all parts results in deleting the perspective.
Goto Forum:
  


Current Time: Sun May 19 07:18:22 EDT 2013

Powered by FUDForum. Page generated in 0.03859 seconds