java.lang.ClassCastException: org.eclipse.swt.layout.GridLayout cannot be cast to org.eclipse.swt.layout.FillData

eclipse.org | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Eclipse Community Forums: Remote Application Platform (RAP) ยป Workaround for TreeViewer bug

    eclipse.org | 7 months ago
    java.lang.ClassCastException: org.eclipse.swt.layout.GridLayout cannot be cast to org.eclipse.swt.layout.FillData

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.swt.layout.GridLayout cannot be cast to org.eclipse.swt.layout.FillData

      at org.eclipse.swt.layout.FillLayout.flushCache()
    2. RWT
      Composite.changed
      1. org.eclipse.swt.layout.FillLayout.flushCache(FillLayout.java:165)
      2. org.eclipse.swt.widgets.Composite.changed(Composite.java:610)
      2 frames
    3. org.eclipse.rwt
      ClearLayoutBuffersVisitor.doVisit
      1. org.eclipse.rwt.internal.textsize.ClearLayoutBuffersVisitor.doVisit(ClearLayoutBuffersVisitor.java:22)
      1 frame
    4. RWT
      WidgetTreeVisitor.accept
      1. org.eclipse.swt.internal.widgets.WidgetTreeVisitor$AllWidgetTreeVisitor.visit(WidgetTreeVisitor.java:34)
      2. org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:48)
      3. org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:55)
      4. org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:55)
      5. org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:55)
      6. org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(WidgetTreeVisitor.java:55)
      6 frames
    5. org.eclipse.rwt
      RWTLifeCycle.sleep
      1. org.eclipse.rwt.internal.textsize.TextSizeRecalculation.clearLayoutBuffers(TextSizeRecalculation.java:51)
      2. org.eclipse.rwt.internal.textsize.TextSizeRecalculation.forceShellRecalculations(TextSizeRecalculation.java:36)
      3. org.eclipse.rwt.internal.textsize.TextSizeRecalculation.execute(TextSizeRecalculation.java:29)
      4. org.eclipse.rwt.internal.textsize.MeasurementListener.handleMeasurementResults(MeasurementListener.java:61)
      5. org.eclipse.rwt.internal.textsize.MeasurementListener.afterPhase(MeasurementListener.java:33)
      6. org.eclipse.rwt.internal.lifecycle.PhaseListenerManager.notifyAfterPhase(PhaseListenerManager.java:85)
      7. org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:168)
      8. org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:253)
      8 frames
    6. RWT
      Display.sleep
      1. org.eclipse.swt.widgets.Display.sleep(Display.java:1174)
      1 frame
    7. Workbench
      WorkbenchAdvisor.eventLoopIdle
      1. org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:361)
      1 frame
    8. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2734)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
      3. org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
      4. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)
      4 frames
    9. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    10. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)
      1 frame
    11. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
      1 frame
    12. com.inpses.read
      Application.start
      1. com.inpses.read.rap.Application.start(Application.java:18)
      1 frame
    13. org.eclipse.rap
      EntrypointApplicationWrapper.createUI
      1. org.eclipse.rap.ui.internal.application.EntrypointApplicationWrapper.createUI(EntrypointApplicationWrapper.java:25)
      1 frame
    14. org.eclipse.rwt
      RWTLifeCycle$UIThreadController.run
      1. org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:81)
      2. org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:204)
      3. org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:88)
      3 frames
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame
    16. org.eclipse.rwt
      UIThread.run
      1. org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:101)
      1 frame