Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-921

String cannot be cast to Boolean when adding table with checkboxes

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Fixed
    • None
    • 1.0.4
    • None
    • All
    • Small

    Description

      I've added component with @Option List<Table>
      class Table contains several boolean options. When I add this table to component layout, I've got ClassCastException in studio:

      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean)
      	at org.eclipse.swt.SWT.error(SWT.java:4441)
      	at org.eclipse.swt.SWT.error(SWT.java:4356)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.talend.rcp.intro.Application.start(Application.java:265)
      	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:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	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:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      	at org.talend.designer.core.ui.editor.properties.macrowidgets.tableeditor.PropertiesTableEditorView.createColumns(PropertiesTableEditorView.java:381)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView$2.createColumns(AbstractDataTableEditorView.java:245)
      	at org.talend.commons.ui.swt.extended.table.AbstractExtendedTableViewer.initTable(AbstractExtendedTableViewer.java:103)
      	at org.talend.commons.ui.swt.extended.table.AbstractExtendedTableViewer.<init>(AbstractExtendedTableViewer.java:67)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView$2.<init>(AbstractDataTableEditorView.java:241)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.initTable(AbstractDataTableEditorView.java:241)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.initTable(AbstractDataTableEditorView.java:231)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.createTableComposite(AbstractDataTableEditorView.java:176)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.initGraphicComponents(AbstractDataTableEditorView.java:189)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.<init>(AbstractDataTableEditorView.java:110)
      	at org.talend.commons.ui.swt.advanced.dataeditor.AbstractDataTableEditorView.<init>(AbstractDataTableEditorView.java:87)
      	at org.talend.designer.core.ui.editor.properties.macrowidgets.tableeditor.PropertiesTableEditorView.<init>(PropertiesTableEditorView.java:119)
      	at org.talend.designer.core.ui.editor.properties.controllers.TableController.createControl(TableController.java:110)
      	at org.talend.sdk.component.studio.ui.composite.TaCoKitComposite.addWidgetIfActive(TaCoKitComposite.java:305)
      	at org.talend.sdk.component.studio.ui.composite.TaCoKitComposite.fillComposite(TaCoKitComposite.java:256)
      	at org.talend.sdk.component.studio.ui.composite.TaCoKitComposite.fillComposite(TaCoKitComposite.java:278)
      	at org.talend.sdk.component.studio.ui.composite.TaCoKitComposite.lambda$2(TaCoKitComposite.java:163)
      	at java.util.Optional.ifPresent(Unknown Source)
      	at org.talend.sdk.component.studio.ui.composite.TaCoKitComposite.placeComponents(TaCoKitComposite.java:163)
      	at org.talend.designer.core.ui.views.properties.MultipleThreadDynamicComposite.addComponents(MultipleThreadDynamicComposite.java:342)
      	at org.talend.designer.core.ui.views.properties.composites.TopMessagesMultiThreadDynamicComposite.addComponents(TopMessagesMultiThreadDynamicComposite.java:71)
      	at org.talend.designer.core.ui.views.properties.MultipleThreadDynamicComposite.addComponents(MultipleThreadDynamicComposite.java:305)
      	at org.talend.designer.core.ui.views.properties.MultipleThreadDynamicComposite.handleResize(MultipleThreadDynamicComposite.java:777)
      	at org.talend.designer.core.ui.views.properties.MultipleThreadDynamicComposite$2$1.run(MultipleThreadDynamicComposite.java:765)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
      	... 23 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsylaiev Dmytro Sylaiev
            Dmytro Chmyga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: