java.lang.ClassCastException: org.eclipse.ui.forms.widgets.TableWrapData cannot be cast to org.eclipse.swt.layout.GridData

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via SpringSource Issue Tracker by Martin Lippert, 1 year ago
org.eclipse.ui.forms.widgets.TableWrapData cannot be cast to org.eclipse.swt.layout.GridData
via SpringSource Issue Tracker by Martin Lippert, 1 year ago
org.eclipse.ui.forms.widgets.TableWrapData cannot be cast to org.eclipse.swt.layout.GridData
via Pentaho BI Platform Tracking by Kurtis Cruzada, 1 year ago
org.eclipse.swt.layout.FormData cannot be cast to org.eclipse.swt.layout.GridData
via Pentaho BI Platform Tracking by Kurtis Cruzada, 1 year ago
org.eclipse.swt.layout.FormData cannot be cast to org.eclipse.swt.layout.GridData
via Eclipse Bugzilla by brianchin, 1 year ago
org.eclipse.ui.internal.WindowTrimProxy cannot be cast to org.eclipse.swt.layout.GridData
via GitHub by kcbabo
, 2 years ago
org.eclipse.jface.layout.GridDataFactory cannot be cast to org.eclipse.swt.layout.GridData
java.lang.ClassCastException: org.eclipse.ui.forms.widgets.TableWrapData cannot be cast to org.eclipse.swt.layout.GridData
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:205)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:163)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:218)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:194)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1194)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:703)
at org.eclipse.ui.forms.widgets.SizeCache.layoutIfNecessary(SizeCache.java:525)
at org.eclipse.ui.forms.widgets.SizeCache.setBounds(SizeCache.java:511)
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.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1200)
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.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:334)
at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:364)
at com.springsource.sts.internal.ide.help.AbstractNameUrlPreferenceModel.setDefaults(AbstractNameUrlPreferenceModel.java:89)
at com.springsource.sts.internal.ide.help.AbstractNameUrlPreferenceModel.(AbstractNameUrlPreferenceModel.java:52)
at com.springsource.sts.internal.ide.help.ExampleProjectsPreferenceModel.(ExampleProjectsPreferenceModel.java:29)
at com.springsource.sts.internal.ide.help.ExampleProjectsPreferenceModel.getInstance(ExampleProjectsPreferenceModel.java:21)
at com.springsource.sts.internal.ide.help.ExampleProjectsDashboardPart.getExampleLocations(ExampleProjectsDashboardPart.java:109)
at com.springsource.sts.internal.ide.help.ExampleProjectsDashboardPart.createSampleLinks(ExampleProjectsDashboardPart.java:161)
at com.springsource.sts.internal.ide.help.ExampleProjectsDashboardPart.createPartContent(ExampleProjectsDashboardPart.java:89)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPart.createControl(AbstractDashboardPart.java:39)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPage.initializePart(AbstractDashboardPage.java:195)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPage.access$0(AbstractDashboardPage.java:192)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPage$1.run(AbstractDashboardPage.java:183)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPage.createParts(AbstractDashboardPage.java:166)
at org.springsource.ide.eclipse.dashboard.ui.AbstractDashboardPage.contributeParts(AbstractDashboardPage.java:157)
at org.springsource.ide.eclipse.dashboard.internal.ui.editors.DashboardMainPage.createFormContent(DashboardMainPage.java:1387)
at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150)
at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:603)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:95)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:837)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:888)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:622)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:724)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:695)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:578)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:314)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3071)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
at org.springsource.ide.eclipse.dashboard.ui.actions.ShowDashboardPageAction.run(ShowDashboardPageAction.java:62)
at org.springsource.ide.eclipse.dashboard.internal.ui.IdeUiPlugin$1$1.run(IdeUiPlugin.java:92)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3940)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.