Community
Participate
Working Groups
Found the exception below in the log running on Eclipse 3.7 with C/C++ Development Platform 8.0.0.201101311025 installed. -- Error Details -- Date: Mon Feb 21 11:23:14 PST 2011 Message: Plug-in "org.eclipse.cdt.mylyn.ui" was unable to instantiate class "org.eclipse.mylyn.internal.cdt.ui.CDTContextLabelProvider". Severity: Error Product: Eclipse SDK 3.7.0.v201101272034 (org.eclipse.sdk.ide) eclipse.buildId=I20110127-2034 Exception Stack Trace: java.lang.NoSuchMethodError: org.eclipse.cdt.internal.ui.viewsupport.AppearanceAwareLabelProvider.<init>(II)V at org.eclipse.mylyn.internal.cdt.ui.CDTContextLabelProvider.<init>(CDTContextLabelProvider.java:33) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.mylyn.internal.context.ui.ContextUiPlugin$UiExtensionPointReader.readLabelProvider(ContextUiPlugin.java:473) at org.eclipse.mylyn.internal.context.ui.ContextUiPlugin$UiExtensionPointReader.initExtensions(ContextUiPlugin.java:461) at org.eclipse.mylyn.internal.context.ui.ContextUiPlugin.getPreservedFilterClasses(ContextUiPlugin.java:609) at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.getPreservedFilterClasses(AbstractFocusViewAction.java:448) at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.installInterestFilter(AbstractFocusViewAction.java:485) at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.updateInterestFilter(AbstractFocusViewAction.java:418) at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.valueChanged(AbstractFocusViewAction.java:302) at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.update(AbstractFocusViewAction.java:275) at org.eclipse.mylyn.context.ui.AbstractAutoFocusViewAction$2.run(AbstractAutoFocusViewAction.java:96) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3524) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3173) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2697) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2661) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2495) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 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:344) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Created attachment 192782 [details] patch I will commit this patch which fixes the error by just using the default constructor instead of the parameterized one. I dont think that there is anything that we need from the parameterized one as the default one provides the same/similar parameters.
Created attachment 192783 [details] mylyn/context/zip
patch committed.
Should we consider backporting this?
I have applied the changes to the e_3_7_m_3_5_x branch. Let me know in case you want me to revert.
I think that it is a good idea to backport this just in case. Thanks Steffen!