Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Wrong bundle loaded after update on macosx
Wrong bundle loaded after update on macosx [message #1763975] Tue, 23 May 2017 14:19 Go to next message
Guillaume Papon is currently offline Guillaume PaponFriend
Messages: 13
Registered: August 2016
Junior Member
Hello,

I have a problem with p2 updating on mac os x, i described it here for more context.

We use the standard UpdateService which is working correctly. The app loads new stuff from repository and put it in app/plugins directory, so we end up having in this directory both versions of each of our plugins (say versions 1 and 2).

On windows, when the app starts, it picks up the correct version of the plugins (version 2), but on mac, it keeps loading the wrong one (version 1). If i delete all v1 jars, it picks up the correct ones (v2 obviously) but if i then undelete them (so we now have back v1 and V2), it keeps taking v2.

I noticed a difference between windows and mac in the file configuration\org.eclipse.equinox.simpleconfigurator\bundles.info (which, correct me if i am wrong, seems to describe the jars to load)

On windows, when i do the update, this file contains only the new version of the jars, ex:
dp.fast.app,2.0.1,plugins/dp.fast.app_2.0.1.jar,4,false
dp.fast.app.update,2.0.1,plugins/dp.fast.app.update_2.0.1.jar,4,false
dp.fast.app.workbench,2.0.1,plugins/dp.fast.app.workbench_2.0.1.jar,4,false
dp.fast.connector,2.0.1,plugins/dp.fast.connector_2.0.1.jar,4,false
dp.fast.core,2.0.1,plugins/dp.fast.core_2.0.1.jar,4,false
dp.fast.core.fx,2.0.1,plugins/dp.fast.core.fx_2.0.1.jar,4,false
....


But on mac, it contains both the old and the new version:

dp.fast.app,2.0.1,plugins/dp.fast.app_2.0.1.jar,4,false
dp.fast.app,2.0.0,plugins/dp.fast.app_2.0.0.jar,4,false
dp.fast.app.update,2.0.1,plugins/dp.fast.app.update_2.0.1.jar,4,false
dp.fast.app.update,2.0.0,plugins/dp.fast.app.update_2.0.0.jar,4,false
dp.fast.app.workbench,2.0.1,plugins/dp.fast.app.workbench_2.0.1.jar,4,false
dp.fast.app.workbench,2.0.0,plugins/dp.fast.app.workbench_2.0.0.jar,4,false
dp.fast.connector,2.0.1,plugins/dp.fast.connector_2.0.1.jar,4,false
dp.fast.connector,2.0.0,plugins/dp.fast.connector_2.0.0.jar,4,false
dp.fast.core,2.0.1,plugins/dp.fast.core_2.0.1.jar,4,false
dp.fast.core,2.0.0,plugins/dp.fast.core_2.0.0.jar,4,false
dp.fast.core.fx,2.0.1,plugins/dp.fast.core.fx_2.0.1.jar,4,false
dp.fast.core.fx,2.0.0,plugins/dp.fast.core.fx_2.0.0.jar,4,false
...


I guess the problem lays here. If i remove the lines containing the old version, the app correctly loads the new bundle (obvioulsy).

So what can create these double lines ?
Re: Wrong bundle loaded after update on macosx [message #1763998 is a reply to message #1763975] Tue, 23 May 2017 18:29 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 659
Registered: January 2012
Senior Member

Are you running on MacOS 10.12 (Sierra)? Sierra introduced a new feature called Gatekeeper Path Randomization. See the following links for some details:

https://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507328
https://bugs.eclipse.org/bugs/show_bug.cgi?id=461670


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Wrong bundle loaded after update on macosx [message #1764043 is a reply to message #1763998] Wed, 24 May 2017 09:30 Go to previous message
Guillaume Papon is currently offline Guillaume PaponFriend
Messages: 13
Registered: August 2016
Junior Member
Thank you for your interesting information.

Yes we are running on Sierra but i am not sure that we are concerned by GPR, since our app is shipped directly in Applications folder.

From the debug i did, it seems to have something to do with "shared mode", although i dont know how to disable it.
Previous Topic:Eclipse Installer by oomph (Eclipse Indigo 3.7)
Next Topic:How to bind a feature to a specific Eclipse package/version
Goto Forum:
  


Current Time: Mon Oct 23 13:47:46 GMT 2017

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

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