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.

  • Result of 4.4 forward porting of code: java.lang.ClassCastException: org.eclipse.jface.action.MenuManager cannot be cast to org.eclipse.swt.widgets.Menu at org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1899) at org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646) 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:1270) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598) or for the new step/job entry right click popup-menu: java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem at org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1781) at org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646) 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:1270) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598)
    via by Matt Casters,
  • Result of 4.4 forward porting of code: java.lang.ClassCastException: org.eclipse.jface.action.MenuManager cannot be cast to org.eclipse.swt.widgets.Menu at org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1899) at org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646) 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:1270) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598) or for the new step/job entry right click popup-menu: java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem at org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1781) at org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646) 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:1270) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598)
    via by Matt Casters,
    • java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem at org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1781) at org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646) 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:1270) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598)
    No Bugmate found.