java.lang.ArrayIndexOutOfBoundsException: 2

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

    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)

    Pentaho BI Platform Tracking | 3 years ago | Chris Deptula
    java.lang.ArrayIndexOutOfBoundsException: 2
  2. 0

    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)

    Pentaho BI Platform Tracking | 3 years ago | Chris Deptula
    java.lang.ArrayIndexOutOfBoundsException: 2
  3. 0

    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)

    Pentaho BI Platform Tracking | 5 years ago | Mark Hall
    java.lang.ArrayIndexOutOfBoundsException: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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)

    Pentaho BI Platform Tracking | 6 years ago | Youngwoo Kim
    java.lang.ArrayIndexOutOfBoundsException: -1
  6. 0

    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)

    Pentaho BI Platform Tracking | 6 years ago | Youngwoo Kim
    java.lang.ArrayIndexOutOfBoundsException: -1

    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.ArrayIndexOutOfBoundsException

      2

      at org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.getData()
    2. org.pentaho.di
      TransGraph.mouseDoubleClick
      1. org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.getData(MultiMergeJoinDialog.java:500)
      2. org.pentaho.di.ui.trans.steps.multimerge.MultiMergeJoinDialog.open(MultiMergeJoinDialog.java:182)
      3. org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137)
      4. org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195)
      5. org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952)
      6. org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720)
      6 frames
    3. 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
    4. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1227)
      2. org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368)
      3. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673)
      4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625)
      4 frames
    5. 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
    6. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
      1 frame