java.lang.ClassCastException

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

Solutions on the web19035

  • via SpringSource Issue Tracker by Martin Lippert, 1 year ago
    org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FillData
  • via Appcelerator JIRA by Fabio Zadrozny, 1 year ago
    org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FillData
  • via Appcelerator JIRA by Fabio Zadrozny, 1 year ago
    org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FillData
  • Stack trace

    • java.lang.ClassCastException: org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FillData at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:144) at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:122) at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:236) at org.eclipse.ui.forms.widgets.LayoutComposite.computeSize(LayoutComposite.java:35) at org.eclipse.ui.forms.widgets.SizeCache.controlComputeSize(SizeCache.java:390) at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumWidth(SizeCache.java:429) at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:189) at org.eclipse.ui.forms.widgets.Form$FormLayout.computeSize(Form.java:140) at org.eclipse.ui.forms.widgets.Form.computeSize(Form.java:194) at org.eclipse.ui.forms.widgets.SizeCache.controlComputeSize(SizeCache.java:390) at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumHeight(SizeCache.java:477) at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:200) at org.eclipse.ui.forms.widgets.SharedScrolledComposite.reflow(SharedScrolledComposite.java:194) at org.eclipse.ui.forms.widgets.SharedScrolledComposite.scheduleReflow(SharedScrolledComposite.java:242) at org.eclipse.ui.forms.widgets.SharedScrolledComposite.access$1(SharedScrolledComposite.java:227) at org.eclipse.ui.forms.widgets.SharedScrolledComposite$1.handleEvent(SharedScrolledComposite.java:67) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4130) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1461) at org.eclipse.swt.widgets.Control.resized(Control.java:3267) at org.eclipse.swt.widgets.Composite.resized(Composite.java:930) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3521) at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3567) at org.eclipse.swt.custom.CTabFolderLayout.layout(CTabFolderLayout.java:84) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3521) at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3521) at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:216) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3567) at org.eclipse.e4.ui.widgets.CTabFolderLayout.layout(CTabFolderLayout.java:113) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3521) at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3521) at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.resized(Composite.java:933) at org.eclipse.swt.widgets.Control.setFrameSize(Control.java:3799) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5454) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setFrame(NSView.java:267) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3532) at org.eclipse.swt.widgets.Control.setBounds(Control.java:3567) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.setRectangle(SashLayout.java:303) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:248) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:291) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:291) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.tileSubNodes(SashLayout.java:291) at org.eclipse.e4.ui.workbench.renderers.swt.SashLayout.layout(SashLayout.java:158) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200) at org.eclipse.swt.widgets.Composite.setLayoutDeferred(Composite.java:1078) at org.eclipse.swt.widgets.Display.runDeferredLayouts(Display.java:4000) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3601) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1015) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:909) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:85) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:580) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:535) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago