java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem

Pentaho BI Platform Tracking | Matt Casters | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    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)

    Pentaho BI Platform Tracking | 4 years ago | Matt Casters
    java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem
  2. 0

    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)

    Pentaho BI Platform Tracking | 4 years ago | Matt Casters
    java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to org.eclipse.swt.widgets.MenuItem

      at org.pentaho.di.ui.spoon.job.JobGraph.setMenu()
    2. org.pentaho.di
      JobGraph.mouseDown
      1. org.pentaho.di.ui.spoon.job.JobGraph.setMenu(JobGraph.java:1781)
      2. org.pentaho.di.ui.spoon.job.JobGraph.mouseDown(JobGraph.java:646)
      2 frames
    3. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      5 frames
    4. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1270)
      2. org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7151)
      3. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8412)
      4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:598)
      4 frames