Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Wrong bundle loaded after update on macosx
Wrong bundle loaded after update on macosx [message #1763543] Wed, 17 May 2017 08:46
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 ?
Previous Topic:Optional dependencies not resolved for some plugins
Next Topic:Can't find org.eclipse.equinox.security.win32.x86 plugin
Goto Forum:
  


Current Time: Sun Jun 24 09:25:42 GMT 2018

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

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

Back to the top