Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 update mechanism under Indigo(Failing to get P2 update examples working)
P2 update mechanism under Indigo [message #1006390] Thu, 31 January 2013 08:36
Michael Gruebsch is currently offline Michael GruebschFriend
Messages: 16
Registered: March 2012
Junior Member

I tried to get the P2 update examples from the GIT repository rt.equinox.p2 working. Both examples projects

  • org.eclipse.equinox.p2.examples.rcp.sdknoautoupdates
  • org.eclipse.equinox.p2.examples.rcp.prestartupdate

seem to be not up to date.

In the first example I get the message

Could not locate the running profile instance. The and eclipse.p2.profile properties may not be set correctly in this application's config.ini file.

The second one throws a NPE
Caused by: java.lang.NullPointerException
	at org.eclipse.equinox.p2.operations.UpdateOperation.getInstalledIUs(
	at org.eclipse.equinox.p2.operations.UpdateOperation.prepareToResolve(
	at org.eclipse.equinox.p2.operations.ProfileChangeOperation.resolveModal(
	at org.eclipse.equinox.p2.examples.rcp.prestartupdate.P2Util.checkForUpdates(
	at org.eclipse.equinox.p2.examples.rcp.prestartupdate.ApplicationWorkbenchWindowAdvisor$
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
	... 38 more

After fixing the example according to I get the same errors.

My question: is there any working example out of the box which could be run under Eclipse 3.7 or 3.8?

Thank you very much.
Previous Topic:How to use external jar?
Next Topic:p2 eclipse.publish.featuresAndBundles does not ignor .svn files
Goto Forum:

Current Time: Thu Oct 28 07:10:47 GMT 2021

Powered by FUDForum. Page generated in 0.01747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top