Nicolas Lalevée created IVYDE-388:
-------------------------------------

             Summary: Preferences cannot be saved
                 Key: IVYDE-388
                 URL: https://issues.apache.org/jira/browse/IVYDE-388
             Project: IvyDE
          Issue Type: Bug
    Affects Versions: master
            Reporter: Nicolas Lalevée


Changing the log level of the console triggers an error. I bet it happens with 
many global preferences.

Here is the stack from the error log:
{noformat}
java.lang.ExceptionInInitializerError
at 
org.apache.ivyde.internal.eclipse.IvyPlugin$2.propertyChange(IvyPlugin.java:173)
at 
org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:350)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:346)
at 
org.eclipse.ui.preferences.ScopedPreferenceStore.setValue(ScopedPreferenceStore.java:607)
at 
org.apache.ivyde.internal.eclipse.ui.preferences.IvyDEPreferenceStoreHelper.setIvyConsoleLogLevel(IvyDEPreferenceStoreHelper.java:212)
at 
org.apache.ivyde.internal.eclipse.ui.console.IvyConsole.setLogLevel(IvyConsole.java:88)
at 
org.apache.ivyde.internal.eclipse.ui.console.IvyConsoleFilterAction$1.run(IvyConsoleFilterAction.java:68)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at 
org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at 
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: java.lang.ClassCastException: java.base/java.util.HashSet cannot be 
cast to java.base/java.lang.String
at 
org.apache.ivyde.internal.eclipse.ui.preferences.PreferenceConstants.<clinit>(PreferenceConstants.java:140)
... 40 more{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to