Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » P2 update mechanism under Indigo(Failing to get P2 update examples working)
P2 update mechanism under Indigo [message #1006388] Thu, 31 January 2013 08:34 Go to next message
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.
Re: P2 update mechanism under Indigo [message #1062649 is a reply to message #1006388] Mon, 10 June 2013 08:59 Go to previous message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 395
Registered: July 2009
Senior Member
if you find/found some, let me know!
Previous Topic:How to query a p2 for IUs by its provided capabilities?
Next Topic:Corrupted application after broken update
Goto Forum:

Current Time: Wed Dec 02 03:26:35 GMT 2015

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

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