java.lang.ClassCastException: java.lang.String cannot be cast to org.pentaho.di.trans.step.StepMeta

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.

  • I built Kettle 4.2.0-RC from source control, and I was poking around in Spoon, previewing "XML Input Stream StAX Test 3 -- Attribute Groups". And the error below occurred. It should be an easy fix to have StepMeta.equals(obj) examine the target class to see if its an instance of StepMeta. 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : java.lang.ClassCastException: java.lang.String cannot be cast to org.pentaho.di.trans.step.StepMeta 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.trans.step.StepMeta.equals(StepMeta.java:407) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:716) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1169) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6843) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:553) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at java.lang.reflect.Method.invoke(Method.java:597) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at java.lang.reflect.Method.invoke(Method.java:597) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.LaunchRunner.run(LaunchRunner.java:116) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
    via by David Smiley,
  • I built Kettle 4.2.0-RC from source control, and I was poking around in Spoon, previewing "XML Input Stream StAX Test 3 -- Attribute Groups". And the error below occurred. It should be an easy fix to have StepMeta.equals(obj) examine the target class to see if its an instance of StepMeta. 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : java.lang.ClassCastException: java.lang.String cannot be cast to org.pentaho.di.trans.step.StepMeta 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.trans.step.StepMeta.equals(StepMeta.java:407) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:716) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1169) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6843) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:553) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at java.lang.reflect.Method.invoke(Method.java:597) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at java.lang.reflect.Method.invoke(Method.java:597) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.LaunchRunner.run(LaunchRunner.java:116) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51) 2011/08/03 13:03:24 - Spoon - ERROR (version 4.2.0-RC1, build 1 from 2011-08-01 17.45.25 by dsmiley) : at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
    via by David Smiley,
    • java.lang.ClassCastException: java.lang.String cannot be cast to org.pentaho.di.trans.step.StepMeta at org.pentaho.di.trans.step.StepMeta.equals(StepMeta.java:407) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:716) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1169) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6843) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:553) 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:134) 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 apple.launcher.LaunchRunner.run(LaunchRunner.java:116) at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51) at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
    No Bugmate found.