java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 3.1M7 Error
    via eclipsesql by feint
    ,
  • Nested SWT Composites with conflicting GridLayout
    via by Unknown author,
  • Plugin not working with Eclipse 3.1 M7
    via by testng...@opensymphony.com,
  • Exception opening Run dialog
    via by dj.houghton,
  • ClassCastException in FillLayout
    via by sudhan_moghe,
  • I was not able to reproduce this bug, but the first time I saw it I did something like this... 1. start spoon 2. create a transformation with a table output 3. right click on that table output step and select "Model" 4. do some stuff in the model perspective, then click the Data Integration perspective button The stacktrace I got was: ERROR 22-03 15:47:05,996 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: spoon.loadPerspective(0) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:327) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton.access$100(SwtToolbarbutton.java:35) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton$1.widgetSelected(SwtToolbarbutton.java:82) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1213) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6680) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:559) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:110) Caused by: org.pentaho.ui.xul.XulException: Error invoking method: spoon.loadPerspective() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:327) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:300) ... 17 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:315) ... 18 more Caused by: java.lang.ClassCastException: org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FormData at org.eclipse.swt.layout.FormLayout.layout(Unknown Source) at org.eclipse.swt.layout.FormLayout.computeSize(Unknown Source) at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source) at org.eclipse.swt.custom.CTabFolderLayout.computeSize(Unknown Source) at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source) at org.eclipse.swt.layout.FillData.computeSize(Unknown Source) at org.eclipse.swt.layout.FillLayout.computeChildSize(Unknown Source) at org.eclipse.swt.layout.FillLayout.computeSize(Unknown Source) at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source) at org.eclipse.swt.custom.SashFormLayout.computeSize(Unknown Source) at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source) at org.eclipse.swt.layout.FormData.computeSize(Unknown Source) at org.eclipse.swt.layout.FormData.getWidth(Unknown Source) at org.eclipse.swt.layout.FormLayout.computeWidth(Unknown Source) at org.eclipse.swt.layout.FormLayout.layout(Unknown Source) at org.eclipse.swt.layout.FormLayout.computeSize(Unknown Source) at org.eclipse.swt.widgets.Composite.computeSize(Unknown Source) at org.eclipse.swt.layout.GridData.computeSize(Unknown Source) at org.eclipse.swt.layout.GridLayout.layout(Unknown Source) at org.eclipse.swt.layout.GridLayout.layout(Unknown Source) at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source) at org.eclipse.swt.widgets.Composite.layout(Unknown Source) at org.eclipse.swt.widgets.Composite.layout(Unknown Source) at org.pentaho.ui.xul.swt.tags.SwtDeck.layout(SwtDeck.java:68) at org.pentaho.ui.xul.swt.tags.SwtDeck.setSelectedIndex(SwtDeck.java:58) at org.pentaho.di.ui.spoon.SpoonPerspectiveManager.activatePerspective(SpoonPerspectiveManager.java:155) at org.pentaho.di.ui.spoon.Spoon.loadPerspective(Spoon.java:926) ... 22 more
    via by Aaron Phillips,
    • java.lang.ClassCastException: org.eclipse.swt.layout.GridData at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayout.java:141) at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.java:119) at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:190) at org.eclipse.swt.layout.GridData.computeSize(GridData.java:463) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207) at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1128) at org.eclipse.swt.widgets.Composite.layout(Composite.java:754) at org.eclipse.swt.widgets.Composite.layout(Composite.java:719) at org.eclipse.swt.widgets.Composite.layout(Composite.java:689)
    No Bugmate found.