Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP P2 Update results in broken product after update(Updating my product makes it not startable again)
RCP P2 Update results in broken product after update [message #847623] Tue, 17 April 2012 13:44 Go to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
Hello.

I have the following scenario:
1) RCP Product application (just for the record it uses the classic Eclipse IDE interface. I copied the "WorkbenchActionBuilder" from org.eclipse.ui.internal.ide to my product, so it will have all the save/open/etc buttons in place, just like in the "normal" eclipse IDE)
2) P2 updating mechanism setup in place.

Now I do the following steps:
1) I change the version for all plugins/features and the product that make up the product(e.g.: 2.0.0.qualifier in 2.0.1.qualifier).
2) I open the 2.0.0 product, press "Check for Updates...".
3) It finds the product update, and continue until it finishes successfully the update, and asks me to restart the IDE.
4)I press restart, it shows a bit of the loading screen and then stops. The .log file now reads: http://pastebin.com/cmf652gg

More exactly, an "org.eclipse.core.runtime.InvalidRegistryObjectException: Invalid registry object" exception.

I've tried investigating, to see where the "handles for configuration" are saved (At least that's what I understood about that exception), tried using my own actionbar builder (not the eclipse internal one), but in vain.

If it helps, the plugin is available open source here: http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/ while the PRODUCT classes are here: http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/product/

Maybe I forgot to add something? Or I added something without needing?

Thanks a lot.
Re: RCP P2 Update results in broken product after update [message #847808 is a reply to message #847623] Tue, 17 April 2012 17:12 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Timotei,

How are your features organized?

Regards,

Wim


> Hello.
>
> I have the following scenario:
> 1) RCP Product application (just for the record it uses the classic Eclipse
IDE interface. I copied the "WorkbenchActionBuilder" from
org.eclipse.ui.internal.ide to my product, so it will have all the
save/open/etc buttons in place, just like in the "normal" eclipse IDE)
> 2) P2 updating mechanism setup in place.
>
> Now I do the following steps:
> 1) I change the version for all plugins/features and the product that make
up the product(e.g.: 2.0.0.qualifier in 2.0.1.qualifier).
> 2) I open the 2.0.0 product, press "Check for Updates...".
> 3) It finds the product update, and continue until it finishes successfully
the update, and asks me to restart the IDE.
> 4)I press restart, it shows a bit of the loading screen and then stops. The
log file now reads: http://pastebin.com/cmf652gg
>
> More exactly, an "org.eclipse.core.runtime.InvalidRegistryObjectException:
Invalid registry object" exception.
>
> I've tried investigating, to see where the "handles for configuration" are
saved (At least that's what I understood about that exception), tried using
my own actionbar builder (not the eclipse internal one), but in vain.
>
> If it helps, the plugin is available open source here:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/ while the PRODUCT
classes are here:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/product/
>
> Maybe I forgot to add something? Or I added something without needing?
>
> Thanks a lot.
Re: RCP P2 Update results in broken product after update [message #847829 is a reply to message #847808] Tue, 17 April 2012 17:44 Go to previous messageGo to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
Well, I have the following 2 features:

- org.wesnoth.feature (contains just the 2 main plugins: org.wesnoth - where the product classes are - and org.wesnoth.ui )
- org.wesnoth.dependencies.feature (contains all dependencies which could not be found in features, or which were better to be included single rather than the whole feature.

Both are referenced from the product feature dependencies.

The product depends
Re: RCP P2 Update results in broken product after update [message #849780 is a reply to message #847829] Thu, 19 April 2012 12:52 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Are you providing an update site for the two features or are you creating a new product and using the resulting P2 repo as a update site?

Re: RCP P2 Update results in broken product after update [message #851207 is a reply to message #849780] Fri, 20 April 2012 19:06 Go to previous messageGo to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
Hmm... Well, I'm building my plugin with the PDE Build. I've set the build.properties, to generate p2 repo. The repo it generates I use it as the update site.

The update site contents are here: http://svn.gna.org/viewcvs/wesnoth/website/eclipse.wesnoth.org/updates/
The build.properties I use: http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/build/build.properties?revision=53417&view=markup

If you look into the build.properties, I have something like:
p2.artifact.repo=file:${buildDirectory}/repository
. Well, that repository folder is copied and used as the updates directory. I am doing it wrong? Sad

Thanks,
Timo
Re: RCP P2 Update results in broken product after update [message #898896 is a reply to message #851207] Sat, 28 July 2012 21:54 Go to previous messageGo to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
Any idea on this?

I am really looking forward to have this issue fixes, as it really stops and breaks the entire autoupdating mechanism Sad
Re: RCP P2 Update results in broken product after update [message #898958 is a reply to message #847623] Sun, 29 July 2012 12:21 Go to previous message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
Yupii!

I made it work for now.

I've added the following line to the "config.ini" file:
org.eclipse.update.reconcile=false


This also removes all the "Could not install bundle" error messages Very Happy

Thanks anyway for the help Smile
Previous Topic:Plug-in that displays which Eclipse plug-in defines an element
Next Topic:action provider keystrokes not working
Goto Forum:
  


Current Time: Thu Apr 25 23:01:27 GMT 2024

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

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

Back to the top