Community
Participate
Working Groups
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Another singleton version selected: org.eclipse.osgi_3.4.0.v20080304 at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(ConfigApplier.java:289) at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:85) at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:115) at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:131) at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:632) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:280) at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:248) at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:152) at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:644) at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:288) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:171) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Couldn't reproduce in I20080305-1100
(In reply to comment #1) > Couldn't reproduce in I20080305-1100 Have org.eclipse.osgi checked out in your workspace.
Curtis, this issue is actually pretty bad. It looks like we always favor the target version of org.eclipse.osgi
I thought this was an issue with the bundles.info file having two versions of osgi. The this file only has one version and it does point to my workspace version org.eclipse.osgi,3.4.0.qualifier,file:/C:/workspaces/equinoxTagging/org.eclipse.osgi/,-1,true The issue is the config.ini is pointing to the target version of org.eclipse.osgi for osgi.framework. osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.0.v20080310.jar
(In reply to comment #4) > I thought this was an issue with the bundles.info file having two versions of > osgi. The this file only has one version and it does point to my workspace > version > > org.eclipse.osgi,3.4.0.qualifier,file:/C:/workspaces/equinoxTagging/org.eclipse.osgi/,-1,true > > The issue is the config.ini is pointing to the target version of > org.eclipse.osgi for osgi.framework. > > osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.0.v20080310.jar > There is code to replace the framework property with the proper plugin location. However, it is failing because the code uses a string search for file:plugins/. I'll work on a proper fix while I try to fix up the launching story, but as a workaround, you could try changing your config.ini to contain osgi.framework=file:plugins/org.eclipse.osgi_3.4.0.v20080310.jar
Created attachment 92594 [details] Work in progress This fix might solve your problem, but it's mixed in with other improvement I'm trying to make to the launching process. Go ahead and try it if you want, but it's not ready to be committed.
Cool Curtis, we should be in the clear until after EclipseCon. Then Tom will be upset that he can't self-host :)
Created attachment 92975 [details] Patch for review Improves a couple of things in the launcher including how the path information is stripped. Still needs more work later, but not for M6.
Thanks Curtis, made minor modifications. This fixes Tom's self-hosting issue from hell. Tom, just for sanity checks, I'd request you to download the 3/24 build ASAP just to test the changes.
Created attachment 93218 [details] mylyn/context/zip
I am on vacation until Wednesday. But will try to do a sanity check tomorrow.
Verified on I20080324-1300.