P2 update mechanism under Indigo [message #1006390] |
Thu, 31 January 2013 08:36 |
Michael Gruebsch Messages: 16 Registered: March 2012 |
Junior Member |
|
|
Hi,
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
Quote:
Could not locate the running profile instance. The eclipse.p2.data.area and eclipse.p2.profile properties may not be set correctly in this application's config.ini file.
The second one throws a NPE
Quote:Caused by: java.lang.NullPointerException
at org.eclipse.equinox.p2.operations.UpdateOperation.getInstalledIUs(UpdateOperation.java:295)
at org.eclipse.equinox.p2.operations.UpdateOperation.prepareToResolve(UpdateOperation.java:280)
at org.eclipse.equinox.p2.operations.ProfileChangeOperation.resolveModal(ProfileChangeOperation.java:112)
at org.eclipse.equinox.p2.examples.rcp.prestartupdate.P2Util.checkForUpdates(P2Util.java:49)
at org.eclipse.equinox.p2.examples.rcp.prestartupdate.ApplicationWorkbenchWindowAdvisor$1.run(ApplicationWorkbenchWindowAdvisor.java:76)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
... 38 more
After fixing the example according to
http://www.eclipse.org/forums/index.php?t=msg&goto=554285&S=db68a0daf2c1bb0915daac6bd300c108 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.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04005 seconds