Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324042

Summary: eclipse 3.5 - 4.0 crash on startup when using icedtea with cacao
Product: [Eclipse Project] Equinox Reporter: Michael Gaber <Michael.Gaber>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, tjwatson
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Gaber CLA 2010-08-30 18:48:30 EDT
Build Identifier: 

when i run eclipse with self-built icedtea 6.1.8.1-r1 with cacao enabled it crashes before even showing the splashscreen with the progress bar (the first splash shows) with the following error:

tigerchen@keksdose-mobile ~ $ ./eclipse-4.0/eclipse 
ERROR: Unable to create class 'org.eclipse.e4.ui.internal.workbench.ResourceHandler' from bundle '61'
org.eclipse.e4.core.di.InjectionException: java.lang.LinkageError: subtype constraint violated (java.lang.Object is not a subclass of org.eclipse.emf.common.util.BasicEMap$Entry)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:795)
	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:104)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:292)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:219)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:152)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:90)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:64)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:314)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:185)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:532)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:525)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.LinkageError: subtype constraint violated (java.lang.Object is not a subclass of org.eclipse.emf.common.util.BasicEMap$Entry)
	at org.eclipse.emf.ecore.util.EcoreEMap$DelegateEObjectContainmentEList.didAdd(EcoreEMap.java:130)
	at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:425)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:331)
	at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:315)
	at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:307)
	at org.eclipse.emf.common.util.BasicEMap.put(BasicEMap.java:591)
	at org.eclipse.emf.ecore.impl.EPackageImpl.addAnnotation(EPackageImpl.java:1655)
	at org.eclipse.emf.ecore.impl.EPackageImpl.addAnnotation(EPackageImpl.java:1640)
	at org.eclipse.emf.ecore.impl.EPackageImpl.addAnnotation(EPackageImpl.java:1635)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.createExtendedMetaDataAnnotations(EcorePackageImpl.java:2923)
	at org.eclipse.emf.ecore.impl.EcorePackageImpl.internalBootstrap(EcorePackageImpl.java:524)
	at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:6582)
	at org.eclipse.emf.ecore.impl.EPackageImpl.<init>(EPackageImpl.java:191)
	at org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl.<init>(ApplicationPackageImpl.java:614)
	at org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl.init(ApplicationPackageImpl.java:640)
	at org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl.<clinit>(ApplicationPackageImpl.java:80)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.init(ResourceHandler.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:47)
	... 28 more


Reproducible: Always
Comment 1 Paul Webster CLA 2010-09-07 07:25:10 EDT
I would open a bug with icetea as well, since none of the other VMs exhibit this problem.

PW
Comment 2 Thomas Watson CLA 2010-09-07 09:24:22 EDT
This appears to be an issue with icedtea.