Bug 221859 - [p2] launching with p2 ide causes exception to be written out to console
Summary: [p2] launching with p2 ide causes exception to be written out to console
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 09:54 EST by Chris Aniszczyk CLA
Modified: 2008-03-26 15:11 EDT (History)
3 users (show)

See Also:


Attachments
Work in progress (16.01 KB, application/octet-stream)
2008-03-14 15:48 EDT, Curtis Windatt CLA
no flags Details
Patch for review (19.38 KB, patch)
2008-03-19 19:12 EDT, Curtis Windatt CLA
no flags Details | Diff
mylyn/context/zip (1.56 KB, application/octet-stream)
2008-03-23 15:33 EDT, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2008-03-07 09:54:46 EST
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)
Comment 1 Curtis Windatt CLA 2008-03-10 13:15:02 EDT
Couldn't reproduce in I20080305-1100
Comment 2 Chris Aniszczyk CLA 2008-03-14 11:21:17 EDT
(In reply to comment #1)
> Couldn't reproduce in I20080305-1100

Have org.eclipse.osgi checked out in your workspace.
Comment 3 Chris Aniszczyk CLA 2008-03-14 11:30:03 EDT
Curtis, this issue is actually pretty bad. It looks like we always favor the target version of org.eclipse.osgi 
Comment 4 Thomas Watson CLA 2008-03-14 11:31:14 EDT
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
Comment 5 Curtis Windatt CLA 2008-03-14 13:08:42 EDT
(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
Comment 6 Curtis Windatt CLA 2008-03-14 15:48:24 EDT
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.
Comment 7 Chris Aniszczyk CLA 2008-03-14 16:40:35 EDT
Cool Curtis, we should be in the clear until after EclipseCon. Then Tom will be upset that he can't self-host :)
Comment 8 Curtis Windatt CLA 2008-03-19 19:12:52 EDT
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.
Comment 9 Chris Aniszczyk CLA 2008-03-23 15:33:40 EDT
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.
Comment 10 Chris Aniszczyk CLA 2008-03-23 15:33:47 EDT
Created attachment 93218 [details]
mylyn/context/zip
Comment 11 Thomas Watson CLA 2008-03-23 20:45:15 EDT
I am on vacation until Wednesday.  But will try to do a sanity check tomorrow.
Comment 12 Thomas Watson CLA 2008-03-26 15:11:08 EDT
Verified on I20080324-1300.