twineworks / ruby-for-pentaho-kettle

Ruby scripting for pentaho-kettle
Other
42 stars 15 forks source link

Cannot open the dialog of Rubi step when re-load the trans #11

Closed baicaicai closed 13 years ago

baicaicai commented 13 years ago

The problem is when i imported a ruby step,edited the trans,everything work fine at this time. but when i restart Kettel, load the trans with ruby step, i can not open the ruby step(double click on the Ruby step), it shows following error: "Argument cannot be null" and it function normally when i excuting the trans.

Kette version: 4.01 stable System: win server 2003 others: ruby runtime 1.92

cheers chaojie

ghost commented 13 years ago

Hi there,

could it be that you are using the 4.2. version of the plugin? If you did not move to Kettle 4.2 yet, you have to use this version:

https://github.com/downloads/type-exit/Ruby-Scripting-for-Kettle/RubyPlugin_1.0_Kettle_4.zip

The UI API changed a bit with 4.2, which is why there is a 4.2 version of the plugin available.

Cheers

Slawo

jordanvs commented 12 years ago

I'm using kettle 4.2 (latest stable) with the RubyPlugin_1.2_Kettle_4.2.zip package and seeing this exact error.

I would consider this a blocking bug since you only have one Kettle session to edit the step.

Using Kettle 32 bit on Mac OSX.

I downgraded to RubyPlugin_1.1_Kettle_4.2.zip and I still see this error.

Here's the stack trace

java.lang.IllegalArgumentException: Argument cannot be null
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Widget.error(Unknown Source)
    at org.eclipse.swt.widgets.Text.setText(Unknown Source)
    at org.pentaho.di.ui.core.widget.TextVar.setText(TextVar.java:171)
    at org.typeexit.kettle.plugin.steps.ruby.RubyStepDialog.addRuntimeTab(RubyStepDialog.java:953)
    at org.typeexit.kettle.plugin.steps.ruby.RubyStepDialog.open(RubyStepDialog.java:413)
    at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:126)
    at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7728)
    at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2744)
    at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:693)
    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.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Control.sendTrackEvents(Unknown Source)
    at org.eclipse.swt.widgets.Control.actionProc(Unknown Source)
    at org.eclipse.swt.widgets.Display.actionProc(Unknown Source)
    at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
    at org.eclipse.swt.widgets.Widget.kEventControlTrack(Unknown Source)
    at org.eclipse.swt.widgets.Control.kEventControlTrack(Unknown Source)
    at org.eclipse.swt.widgets.Widget.controlProc(Unknown Source)
    at org.eclipse.swt.widgets.Display.controlProc(Unknown Source)
    at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1169)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6940)
    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)