Hi Gerhard,
This seems to be a bug,
however I can not reproduce it with the latest HEAD. Could you create a
bugzilla report and provide a detailed description on how to reproduce this. Also
it would be good if you could attach sample projects that expose this behavior.
Thanks,
Mikhail
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schaber, Gerhard
Sent: Tuesday, May 08, 2007 12:27
PM
To: CDT
General developers list.
Subject: [cdt-dev] Reason for
read-only storage?
Can anyone tell me, what can cause a storage to be read
only? The following error appears sometimes when I start the application with
only closed projects, then open one project, and then save the language
mappings in the corresponding property page. I can't tell what caused this
problem. The error does not appear anymore for some reason. I just want to make
sure that this does not happen again.
org.eclipse.cdt.core.settings.model.WriteAccessException
at org.eclipse.cdt.internal.core.settings.model.ExceptionFactory.createIsReadOnlyException(ExceptionFactory.java:18)
at
org.eclipse.cdt.internal.core.settings.model.CStorage.importStorage(CStorage.java:93)
at
org.eclipse.cdt.internal.core.settings.model.CConfigurationSpecSettings.importStorage(CConfigurationSpecSettings.java:802)
at
org.eclipse.cdt.internal.core.CConfigBasedDescriptorManager.reconsile(CConfigBasedDescriptorManager.java:550)
at
org.eclipse.cdt.internal.core.CConfigBasedDescriptorManager.reconsile(CConfigBasedDescriptorManager.java:534)
at
org.eclipse.cdt.internal.core.CConfigBasedDescriptorManager.reconsile(CConfigBasedDescriptorManager.java:521)
at
org.eclipse.cdt.internal.core.CConfigBasedDescriptor.saveProjectData(CConfigBasedDescriptor.java:307)
at org.eclipse.cdt.internal.core.language.LanguageMappingStore.storeMappings(LanguageMappingStore.java:158)
at
org.eclipse.cdt.core.model.LanguageManager.storeLanguageMappingConfiguration(LanguageManager.java:447)
at org.eclipse.cdt.internal.ui.language.ProjectLanguageMappingPropertyPage.performOk(ProjectLanguageMappingPropertyPage.java:136)
at
org.eclipse.jface.preference.PreferencePage.performApply(PreferencePage.java:431)
at
org.eclipse.jface.preference.PreferencePage$2.widgetSelected(PreferencePage.java:282)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3673)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3284)
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:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3673)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3284)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2337)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2301)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2176)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:463)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:458)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
com.windriver.ide.application.CopyOfIDEApplication.start(CopyOfIDEApplication.java:104)
at com.windriver.ide.application.UnifiedSWTSwingApplication.access$4(UnifiedSWTSwingApplication.java:1)
at
com.windriver.ide.application.UnifiedSWTSwingApplication.start(UnifiedSWTSwingApplication.java:37)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:146)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:356)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:171)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
at org.eclipse.equinox.launcher.Main.run(Main.java:1141)
at org.eclipse.equinox.launcher.Main.main(Main.java:1116)