java.lang.ArrayIndexOutOfBoundsException

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.

  • Similar to PDI-4673 but the difference in this case is that I'm using a database repository. An error message: java.lang.ArrayIndexOutOfBoundsException: -1 at org.pentaho.di.core.row.ValueMeta.getTypeDesc(ValueMeta.java:2757) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.getData(SelectValuesDialog.java:593) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.open(SelectValuesDialog.java:500) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:126) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7420) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2726) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:691) 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:1157) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6658) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) 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:110)
    via by Youngwoo Kim,
  • Similar to PDI-4673 but the difference in this case is that I'm using a database repository. An error message: java.lang.ArrayIndexOutOfBoundsException: -1 at org.pentaho.di.core.row.ValueMeta.getTypeDesc(ValueMeta.java:2757) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.getData(SelectValuesDialog.java:593) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.open(SelectValuesDialog.java:500) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:126) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7420) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2726) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:691) 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:1157) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6658) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) 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:110)
    via by Youngwoo Kim,
  • I am working with the latest PDI build: Build version : 4.3.0-M1 Build date : 2011-12-14 16.37.57 I have a transform that I use to prep data for Hive. The key piece of logic is that null String values in a Hive file must be denoted with \N. I use the "If Field value is null" step to replace any null Strings with \N. However, whenever I configure to replace value by type with: String \N I get the following error message when I hit the OK button: java.lang.ArrayIndexOutOfBoundsException: 0 at org.pentaho.di.trans.steps.ifnull.IfNullMeta.clone(IfNullMeta.java:148) at org.pentaho.di.trans.step.StepMeta.replaceMeta(StepMeta.java:466) at org.pentaho.di.trans.step.StepMeta.clone(StepMeta.java:454) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:167) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7710) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2755) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:697) 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:1148) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6922) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:548) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
    via by Mark Hall,
  • If you fully configure a multiway merge join and then delete one of the input hops you will not be able to edit the step and it will throw an ArrayIndexOutOfBounds Exception when you try. 1. Fully configure a Multiway Merge Join with 3 or more inputs. 2. Delete any one of the input hops. 3. Try to edit the Multiway Merge Join 4. You will get an ArrayIndexOutOfBoundsException like below. java.lang.ArrayIndexOutOfBoundsException: 2 at org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.getData(MultiMergeJoinDialog.java:500) at org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.open(MultiMergeJoinDialog.java:182) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) 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:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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:134)
    via by Chris Deptula,
  • I am working with the latest PDI build: Build version : 4.3.0-M1 Build date : 2011-12-14 16.37.57 I have a transform that I use to prep data for Hive. The key piece of logic is that null String values in a Hive file must be denoted with \N. I use the "If Field value is null" step to replace any null Strings with \N. However, whenever I configure to replace value by type with: String \N I get the following error message when I hit the OK button: java.lang.ArrayIndexOutOfBoundsException: 0 at org.pentaho.di.trans.steps.ifnull.IfNullMeta.clone(IfNullMeta.java:148) at org.pentaho.di.trans.step.StepMeta.replaceMeta(StepMeta.java:466) at org.pentaho.di.trans.step.StepMeta.clone(StepMeta.java:454) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:167) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7710) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2755) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:697) 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:1148) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6922) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:548) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
    via by Mark Hall,
  • If you fully configure a multiway merge join and then delete one of the input hops you will not be able to edit the step and it will throw an ArrayIndexOutOfBounds Exception when you try. 1. Fully configure a Multiway Merge Join with 3 or more inputs. 2. Delete any one of the input hops. 3. Try to edit the Multiway Merge Join 4. You will get an ArrayIndexOutOfBoundsException like below. java.lang.ArrayIndexOutOfBoundsException: 2 at org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.getData(MultiMergeJoinDialog.java:500) at org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.open(MultiMergeJoinDialog.java:182) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) 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:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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:134)
    via by Chris Deptula,
    • java.lang.ArrayIndexOutOfBoundsException: -1 at org.pentaho.di.core.row.ValueMeta.getTypeDesc(ValueMeta.java:2757) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.getData(SelectValuesDialog.java:593) at org.pentaho.di.ui.trans.steps.selectvalues.SelectValuesDialog.open(SelectValuesDialog.java:500) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:126) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:7420) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2726) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:691) 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:1157) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6658) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) 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:110)
    No Bugmate found.