Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Couldn't add input fields to Script!

  1. #1
    Join Date
    Aug 2007
    Posts
    3

    Default Couldn't add input fields to Script!

    I get this error shown in the attached dialog. I am just pressing the Test button on a blank Javascript transformation. I have a single string input field. Any ideas? I'm using Java 1.6 and the 3.0.0-M2 Kettle release.

    Thanks,
    Martin
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    And what's the complete error message?

    Regards,
    Sven

  3. #3
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    It was an issue in M2. Should be gone in RC1. Give it a try.

  4. #4
    Join Date
    Aug 2007
    Posts
    3

    Default

    Here is the stack trace RC1 gives:

    org.pentaho.di.core.exception.KettleException:
    Couldn't add Input fields to Script!
    java.lang.String cannot be cast to [B

    at org.pentaho.di.ui.trans.steps.scriptvalues_mod.ScriptValuesModDialog.test(ScriptValuesModDialog.java:1005)
    at org.pentaho.di.ui.trans.steps.scriptvalues_mod.ScriptValuesModDialog.access$200(ScriptValuesModDialog.java:116)
    at org.pentaho.di.ui.trans.steps.scriptvalues_mod.ScriptValuesModDialog$3.handleEvent(ScriptValuesModDialog.java:448)
    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.trans.steps.scriptvalues_mod.ScriptValuesModDialog.open(ScriptValuesModDialog.java:542)
    at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:111)
    at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:6145)
    at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2145)
    at org.pentaho.di.ui.spoon.trans.TransGraph.access$100(TransGraph.java:120)
    at org.pentaho.di.ui.spoon.trans.TransGraph$4.mouseDoubleClick(TransGraph.java:316)
    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:811)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:5378)
    at org.pentaho.di.ui.spoon.Spoon.run(Spoon.java:5457)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:359)
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B
    at org.pentaho.di.core.row.ValueMeta.isNull(ValueMeta.java:2496)
    at org.pentaho.di.core.row.ValueMeta.createOriginalValue(ValueMeta.java:2843)
    at org.pentaho.di.ui.trans.steps.scriptvalues_mod.ScriptValuesModDialog.test(ScriptValuesModDialog.java:979)
    ... 21 more

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.