Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2945

ClassCastException when resetting "clustered" attribute to empty value

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: tooling
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • create an SCA Binding
      • go to Properties -> Bindings
      • set clustered value to true using drop-down
      • set preferLocal to False using dropdown
      • select "true" in clustered combobox and delete it
        --> look in log
      Show
      create an SCA Binding go to Properties -> Bindings set clustered value to true using drop-down set preferLocal to False using dropdown select "true" in clustered combobox and delete it --> look in log

      Description

      !ENTRY org.eclipse.core.databinding 4 0 2016-08-08 09:56:22.587
      !MESSAGE An error occurred while setting the value.
      !STACK 0
      java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
      	at org.switchyard.tools.ui.editor.components.binding.sca.BindingSCAComposite$2.handleChange(BindingSCAComposite.java:325)
      	at org.eclipse.core.databinding.observable.ChangeEvent.dispatch(ChangeEvent.java:42)
      	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:117)
      	at org.eclipse.core.databinding.observable.AbstractObservable.fireChange(AbstractObservable.java:71)
      	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.fireValueChange(DecoratingObservableValue.java:60)
      	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.handleValueChange(DecoratingObservableValue.java:103)
      	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue$1.handleValueChange(DecoratingObservableValue.java:76)
      	at org.eclipse.core.databinding.observable.value.ValueChangeEvent.dispatch(ValueChangeEvent.java:70)
      	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:117)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.fireValueChange(AbstractObservableValue.java:82)
      	at org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableValue.access$2(DetailObservableValue.java:1)
      	at org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableValue$1.handleValueChange(DetailObservableValue.java:47)
      	at org.eclipse.core.databinding.observable.value.ValueChangeEvent.dispatch(ValueChangeEvent.java:70)
      	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:117)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.fireValueChange(AbstractObservableValue.java:82)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.notifyIfChanged(SimplePropertyObservableValue.java:126)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.doSetValue(SimplePropertyObservableValue.java:115)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
      	at org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableValue.doSetValue(DetailObservableValue.java:144)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
      	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:115)
      	at org.eclipse.core.databinding.UpdateValueStrategy.doSet(UpdateValueStrategy.java:469)
      	at org.switchyard.tools.ui.editor.databinding.EMFUpdateValueStrategyConversionErrorMessage.doSet(EMFUpdateValueStrategyConversionErrorMessage.java:134)
      	at org.eclipse.core.databinding.ValueBinding$3$1.run(ValueBinding.java:206)
      	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      	at org.eclipse.core.databinding.ValueBinding$3.run(ValueBinding.java:196)
      	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      	at org.eclipse.core.databinding.ValueBinding.doUpdate(ValueBinding.java:158)
      	at org.eclipse.core.databinding.ValueBinding.updateTargetToModel(ValueBinding.java:118)
      	at org.switchyard.tools.ui.editor.databinding.SWTValueUpdater.handleEvent(SWTValueUpdater.java:119)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
      	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2926)
      	at org.eclipse.swt.widgets.Combo.wmCommandChild(Combo.java:3246)
      	at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4939)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4794)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5115)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2446)
      	at org.eclipse.swt.widgets.Combo.callWindowProc(Combo.java:478)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4889)
      	at org.eclipse.swt.widgets.Combo.windowProc(Combo.java:2851)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5115)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2446)
      	at org.eclipse.swt.widgets.Combo.callWindowProc(Combo.java:494)
      	at org.eclipse.swt.widgets.Combo.windowProc(Combo.java:2737)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5115)
      	at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:3144)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3811)
      	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:687)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
      	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 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.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)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  aurelien.pupier Aurélien Pupier
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: