Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 162924 - [preferences] compiler compliance page causing illegal state exception
Summary: [preferences] compiler compliance page causing illegal state exception
Status: RESOLVED DUPLICATE of bug 137398
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 11:12 EST by Michael Rennie CLA
Modified: 2006-11-03 02:56 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2006-10-31 11:12:37 EST
Using the short-cut menu from the package explorer I went to turn off project specific compiler setting for a java project. Once I unchecked the box and clicked "yes" to the resulting prompt for a rebuild, I clicked "ok" and recieved the following error:

java.lang.IllegalStateException: Preference node "org.eclipse.jdt.core" has been removed.
	at org.eclipse.core.internal.preferences.EclipsePreferences.checkRemoved(EclipsePreferences.java:157)
	at org.eclipse.core.internal.preferences.EclipsePreferences.internalGet(EclipsePreferences.java:513)
	at org.eclipse.core.internal.preferences.EclipsePreferences.get(EclipsePreferences.java:364)
	at org.eclipse.ui.internal.preferences.WorkingCopyPreferences.internalGet(WorkingCopyPreferences.java:191)
	at org.eclipse.ui.internal.preferences.WorkingCopyPreferences.get(WorkingCopyPreferences.java:180)
	at org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock$Key.getStoredValue(OptionsConfigurationBlock.java:99)
	at org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock.getChanges(OptionsConfigurationBlock.java:664)
	at org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock.processChanges(OptionsConfigurationBlock.java:719)
	at org.eclipse.jdt.internal.ui.preferences.OptionsConfigurationBlock.performOk(OptionsConfigurationBlock.java:708)
	at org.eclipse.jdt.internal.ui.preferences.ComplianceConfigurationBlock.performOk(ComplianceConfigurationBlock.java:617)
	at org.eclipse.jdt.internal.ui.preferences.CompliancePreferencePage.performOk(CompliancePreferencePage.java:128)
	at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:889)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:850)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
	at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:869)
	at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:377)
	at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:230)
	at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:638)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1095)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3205)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2881)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
	at org.eclipse.jface.window.Window.open(Window.java:796)
	at org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.ConfigureBuildPathAction.run(ConfigureBuildPathAction.java:64)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1095)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3205)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2881)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1924)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1888)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:341)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:285)
	at org.eclipse.core.launcher.Main.run(Main.java:987)
	at org.eclipse.core.launcher.Main.main(Main.java:962)
Comment 1 Markus Keller CLA 2006-11-02 06:09:34 EST
Steps in I20061102-0010:
- new Java project
- context menu > Properties > Java Compiler
- click "Enable project specific settings" (to check)
- click Apply
- click "Enable project specific settings" (to uncheck)
- click Apply
- click OK or click "Enable project specific settings" (to check)
Comment 2 Martin Aeschlimann CLA 2006-11-03 02:56:26 EST

*** This bug has been marked as a duplicate of 137398 ***