org.eclipse.equinox.p2.examples.rcp.prestartupdate fails with NPE [message #869727] |
Fri, 04 May 2012 04:36 |
|
As the P2 eclipse wiki suggests, I have
- checked out the prestart update example
- into my Eclipse classic 3.7.2 and set the platform as target.
- opened the product file (it has the startup settings for DS) and selected "run"
- Got a Nullpointer in
at org.eclipse.equinox.p2.examples.rcp.prestartupdate.P2Util.checkForUpdates(P2Util.java:61)
Debugging shows that
operation.getProvisioningJob(null) in line 60 yields null and causes the NPE.
- status is
Status OK: org.eclipse.equinox.p2.operations code=10001 Your original request has been modified. null children=[]
- Most interesting is that operation.iusToUpdate is an emtpy collection.
I have checked that the P2 repo defined in the file is active. I can see it from my Eclipse's P2 client. I would expect to see it in the applications update requirements, but it does not appear.
I have no way of debugging this further, as I cannot identify how the update is carried out. Given that this is a published example of a common use case, maybe one of the developers cares to comment?
Thanks, JG
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02952 seconds