Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 155413 - An error occured after changing the PHP version to the defaults.
Summary: An error occured after changing the PHP version to the defaults.
Status: CLOSED DUPLICATE of bug 137398
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 11:58 EDT by jackie CLA
Modified: 2020-05-14 11:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jackie CLA 2006-08-28 11:58:13 EDT
An error occured after changing the PHP version to the defaults.

Changing between PHP version, in PHP Project Properties-> PHP Interpreter.
Afther changing the PHP version of a project to PHP4, and than entering again 
to the PHP Interpreter and pressing on the Restore Defaults and apply getting 
the error :

eclipse.buildId=unknown
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

Error
Mon Aug 28 19:00:54 IDT 2006
java.lang.IllegalStateException: Preference node "org.eclipse.php.core" has 
been removed.

java.lang.IllegalStateException: Preference node "org.eclipse.php.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.php.ui.preferences.OptionsConfigurationBlock$Key.getStoredValue(Unknown 
Source)
at org.eclipse.php.ui.preferences.OptionsConfigurationBlock.getChanges(Unknown 
Source)
at 
org.eclipse.php.ui.preferences.OptionsConfigurationBlock.processChanges(Unknown 
Source)
at org.eclipse.php.ui.preferences.OptionsConfigurationBlock.performOk(Unknown 
Source)
at 
org.eclipse.php.internal.ui.preferences.PHPInterpreterPreferencePage.performOk(Unknown 
Source)
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:843)
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:660)
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:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at 
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156)
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:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
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:92)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Eden Klein CLA 2006-09-04 04:34:10 EDT
The same behaviour occurs for every property page.
The problem is a generic one, not related to php interpreter
Comment 2 Yaron Mazor CLA 2006-10-10 02:55:30 EDT
I managed to minimize the scenario :
1. Open "Project Properties" (not Preferences)
2. Go to 'PHP Interpreter' node.
3. Check the 'Enable project specific settings' CheckBox.
4. Click on 'Apply' and 'OK'
5. Re-Open "Project Properties" (not Preferences)
6. UnCheck the 'Enable project specific settings' CheckBox.
7. Click on 'Apply' and 'OK'

You should get an exception message to read within the log file.
Comment 3 Yaron Mazor CLA 2006-10-10 09:08:42 EDT
reopen
Comment 4 Yaron Mazor CLA 2006-10-10 09:09:40 EDT
The bug source is Eclipse. (see #137398)
For some reason , when unchecking the 'Enable project specific settings' CheckBox
and pressing apply, it removes a node from Preferences and then the workbench looks
for a node which does not exist ==> throws

Note : you can repreduce this bug also in JDT in the exact same way.

*** This bug has been marked as a duplicate of 137398 ***
Comment 5 Igor Leznik CLA 2006-10-11 09:26:45 EDT
Closed as duplicate of 137398
Comment 6 Igor Leznik CLA 2006-10-11 09:28:33 EDT
Closed as duplicate of 137398