java.lang.IllegalArgumentException: Argument cannot be null

Pentaho BI Platform Tracking | Chris Deptula | 2 years ago
  1. 0

    The Mapping (sub-transformation) step cannot be opened to edit if the String value for a parameter is left empty. It fails with a "Unable to open dialog for this step Argument cannot be null", To reproduce this you must have a parameter in your mapping with a parameter name, but the string value is left empty. Save the transformation, close and re-open it. {noformat} 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.TableItem.setText(Unknown Source) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.addParametersTab(MappingDialog.java:1079) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.getData(MappingDialog.java:971) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.open(MappingDialog.java:648) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8720) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3027) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:744) 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:1310) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7931) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9202) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) {noformat} To fix this lines 1078 and 1079 of ui/src/org/pentaho/di/ui/trans/steps/ampping/MappingDialog.java should be changed from: tableItem.setText( 1, parameters.getVariable()[ i ] ); tableItem.setText( 2, parameters.getInputField()[ i ] ); to: tableItem.setText( 1, Const.NVL(parameters.getVariable()[ i ],"") ); tableItem.setText( 2, Const.NVL(parameters.getInputField()[ i ],"") );

    Pentaho BI Platform Tracking | 2 years ago | Chris Deptula
    java.lang.IllegalArgumentException: Argument cannot be null
  2. 0

    The Mapping (sub-transformation) step cannot be opened to edit if the String value for a parameter is left empty. It fails with a "Unable to open dialog for this step Argument cannot be null", To reproduce this you must have a parameter in your mapping with a parameter name, but the string value is left empty. Save the transformation, close and re-open it. {noformat} 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.TableItem.setText(Unknown Source) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.addParametersTab(MappingDialog.java:1079) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.getData(MappingDialog.java:971) at org.pentaho.di.ui.trans.steps.mapping.MappingDialog.open(MappingDialog.java:648) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8720) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3027) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:744) 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:1310) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7931) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9202) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:648) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) {noformat} To fix this lines 1078 and 1079 of ui/src/org/pentaho/di/ui/trans/steps/ampping/MappingDialog.java should be changed from: tableItem.setText( 1, parameters.getVariable()[ i ] ); tableItem.setText( 2, parameters.getInputField()[ i ] ); to: tableItem.setText( 1, Const.NVL(parameters.getVariable()[ i ],"") ); tableItem.setText( 2, Const.NVL(parameters.getInputField()[ i ],"") );

    Pentaho BI Platform Tracking | 2 years ago | Chris Deptula
    java.lang.IllegalArgumentException: Argument cannot be null
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Cannot add J2EE Server

    Oracle Community | 1 decade ago | 666705
    java.lang.IllegalArgumentException: Argument cannot be null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Argument cannot be null

      at org.eclipse.swt.SWT.error()
    2. RWT
      TableItem.setText
      1. org.eclipse.swt.SWT.error(Unknown Source)
      2. org.eclipse.swt.SWT.error(Unknown Source)
      3. org.eclipse.swt.SWT.error(Unknown Source)
      4. org.eclipse.swt.widgets.Widget.error(Unknown Source)
      5. org.eclipse.swt.widgets.TableItem.setText(Unknown Source)
      5 frames
    3. org.pentaho.di
      TransGraph.mouseDoubleClick
      1. org.pentaho.di.ui.trans.steps.mapping.MappingDialog.addParametersTab(MappingDialog.java:1079)
      2. org.pentaho.di.ui.trans.steps.mapping.MappingDialog.getData(MappingDialog.java:971)
      3. org.pentaho.di.ui.trans.steps.mapping.MappingDialog.open(MappingDialog.java:648)
      4. org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:124)
      5. org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8720)
      6. org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:3027)
      7. org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:744)
      7 frames
    4. 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
    5. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1310)
      2. org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7931)
      3. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9202)
      4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:648)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
      1 frame