[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] Follow-Up: trouble with prestartupdate example

Hi all,

some digging made me add a try catch in the workbench startup.
now I see

!SESSION 2010-05-14 17:29:37.989 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.p2.examples.rcp.prestartupdate 1 0 2010-05-14 17:29:41.616
!MESSAGE Checking for updates

!ENTRY org.eclipse.equinox.p2.examples.rcp.prestartupdate 4 0 2010-05-14 17:29:41.633
!MESSAGE Exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.p2.operations.UpdateOperation.getInstalledIUs(UpdateOperation.java:296)
at org.eclipse.equinox.p2.operations.UpdateOperation.prepareToResolve(UpdateOperation.java:281)
at org.eclipse.equinox.p2.operations.ProfileChangeOperation.resolveModal(ProfileChangeOperation.java:112)
at org.eclipse.equinox.p2.examples.rcp.prestartupdate.P2Util.checkForUpdates(Unknown Source)
at org.eclipse.equinox.p2.examples.rcp.prestartupdate.ApplicationWorkbenchAdvisor$1.run(Unknown Source)
...

I guess I need some more p2 bundles to be started when I have no UI to get the Provisioning Service. 

But I have no clue what to start, as the example in the wiki uses examplarysetup which tells it obsolete and does not work either.

Is there any documentation in this ?

Regards Thomas