[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

2 ClassCastExceptions importing preferences

From: Marc Sherman <msherman_at_projectile.ca>
Date: 2005-11-24 20:11:44 CET

This is with Eclipse 3.1.1, Subclipse 0.9.32.

I imported preferences from one workspace into another, and got the
following two exceptions:

!ENTRY org.eclipse.ui.workbench 4 2 2005-11-24 12:53:32.60
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.ClassCastException: java.lang.String
        at
org.tigris.subversion.subclipse.ui.decorator.SVNLightweightDecorator$1.propertyChange(SVNLightweightDecorator.java:157)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:344)
        at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:341)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore$1.preferenceChange(ScopedPreferenceStore.java:145)
        at
org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:767)
        at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:770)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:783)
        at
org.eclipse.core.internal.preferences.PreferencesService.copyFromTo(PreferencesService.java:924)
        at
org.eclipse.core.internal.preferences.PreferencesService$6.visit(PreferencesService.java:1089)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:93)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:97)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:97)
        at
org.eclipse.core.internal.preferences.PreferencesService.internalApply(PreferencesService.java:1093)
        at
org.eclipse.core.internal.preferences.PreferencesService.applyPreferences(PreferencesService.java:1060)
        at
org.eclipse.ui.internal.wizards.preferences.WizardPreferencesImportPage1.transfer(WizardPreferencesImportPage1.java:180)
        at
org.eclipse.ui.internal.wizards.preferences.WizardPreferencesPage.finish(WizardPreferencesPage.java:603)
        at
org.eclipse.ui.internal.wizards.preferences.PreferencesImportWizard.performFinish(PreferencesImportWizard.java:87)
        at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
        at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
        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:843)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
        at org.eclipse.jface.window.Window.open(Window.java:787)
        at
org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
        at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167)
        at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
        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:843)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
        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.core.launcher.Main.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
        at org.eclipse.core.launcher.Main.run(Main.java:973)
        at org.eclipse.core.launcher.Main.main(Main.java:948)

!ENTRY org.eclipse.ui.workbench 4 2 2005-11-24 12:53:35.310
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
java.lang.ClassCastException: java.lang.String
        at
org.tigris.subversion.subclipse.ui.decorator.SVNLightweightDecorator$1.propertyChange(SVNLightweightDecorator.java:141)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:344)
        at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:341)
        at
org.eclipse.ui.preferences.ScopedPreferenceStore$1.preferenceChange(ScopedPreferenceStore.java:145)
        at
org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:767)
        at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:770)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:783)
        at
org.eclipse.core.internal.preferences.PreferencesService.copyFromTo(PreferencesService.java:924)
        at
org.eclipse.core.internal.preferences.PreferencesService$6.visit(PreferencesService.java:1089)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:93)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:97)
        at
org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:97)
        at
org.eclipse.core.internal.preferences.PreferencesService.internalApply(PreferencesService.java:1093)
        at
org.eclipse.core.internal.preferences.PreferencesService.applyPreferences(PreferencesService.java:1060)
        at
org.eclipse.ui.internal.wizards.preferences.WizardPreferencesImportPage1.transfer(WizardPreferencesImportPage1.java:180)
        at
org.eclipse.ui.internal.wizards.preferences.WizardPreferencesPage.finish(WizardPreferencesPage.java:603)
        at
org.eclipse.ui.internal.wizards.preferences.PreferencesImportWizard.performFinish(PreferencesImportWizard.java:87)
        at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
        at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
        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:843)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
        at org.eclipse.jface.window.Window.open(Window.java:787)
        at
org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:159)
        at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167)
        at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
        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:843)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
        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.core.launcher.Main.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
        at org.eclipse.core.launcher.Main.run(Main.java:973)
        at org.eclipse.core.launcher.Main.main(Main.java:948)

- Marc
Received on Fri Nov 25 06:11:44 2005

This is an archived mail posted to the Subclipse Users mailing list.