java.lang.ArrayIndexOutOfBoundsException: 1

Pentaho BI Platform Tracking | dan kern | 4 years ago
  1. 0

    Tried to save a Mapping in the step MySql Bulk Loader. Tested this both on Linux and Windows 7. The problem occurrs when I press on "Edit Mapping" and then add a mapping using "Guess" or simply "Add". After pressing "OK", I received this error message in a popup: An unexpected error occurred in Spoon: 1 Pressing on Details, show this Java Exception: java.lang.ArrayIndexOutOfBoundsException: 1 at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings(MySQLBulkLoaderDialog.java:724) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.access$500(MySQLBulkLoaderDialog.java:75) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog$6.handleEvent(MySQLBulkLoaderDialog.java:501) 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:1169) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6945) 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)

    Pentaho BI Platform Tracking | 4 years ago | dan kern
    java.lang.ArrayIndexOutOfBoundsException: 1
  2. 0

    Tried to save a Mapping in the step MySql Bulk Loader. Tested this both on Linux and Windows 7. The problem occurrs when I press on "Edit Mapping" and then add a mapping using "Guess" or simply "Add". After pressing "OK", I received this error message in a popup: An unexpected error occurred in Spoon: 1 Pressing on Details, show this Java Exception: java.lang.ArrayIndexOutOfBoundsException: 1 at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings(MySQLBulkLoaderDialog.java:724) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.access$500(MySQLBulkLoaderDialog.java:75) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog$6.handleEvent(MySQLBulkLoaderDialog.java:501) 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:1169) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6945) 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)

    Pentaho BI Platform Tracking | 4 years ago | dan kern
    java.lang.ArrayIndexOutOfBoundsException: 1
  3. 0

    Whenever I use Bulk Loader (either mysql or postgres) and click the Edit Mapping button, I always get one of the following errors: Array out of bounds exception cannot open dialog box Reproduction Steps: # Create a new transformation, prepare a step with sample data (Data Grid, Generate Random Credit Card Numbers, etc) # Add a MySQL Bulk Loader step, add a hop, and configure a MySQL database connection in the step # Create the target table using the SQL button, if needed # Click the "Edit mapping" button, select the correct source and target fields and add to the Mappings. # Click OK. Expected Results: The mappings are added to the "Fields to load" table in the MySQL Bulk Loader Step Dialog window Actual Results: An error window is displayed, and only the first field is entered into the "Fields to load" table. {noformat} java.lang.ArrayIndexOutOfBoundsException: 0 at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings(MySQLBulkLoaderDialog.java:735) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.access$500(MySQLBulkLoaderDialog.java:86) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog$6.handleEvent(MySQLBulkLoaderDialog.java:512) 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) {noformat}

    Pentaho BI Platform Tracking | 2 years ago | Kurt Mueller
    java.lang.ArrayIndexOutOfBoundsException: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Whenever I use Bulk Loader (either mysql or postgres) and click the Edit Mapping button, I always get one of the following errors: Array out of bounds exception cannot open dialog box Reproduction Steps: # Create a new transformation, prepare a step with sample data (Data Grid, Generate Random Credit Card Numbers, etc) # Add a MySQL Bulk Loader step, add a hop, and configure a MySQL database connection in the step # Create the target table using the SQL button, if needed # Click the "Edit mapping" button, select the correct source and target fields and add to the Mappings. # Click OK. Expected Results: The mappings are added to the "Fields to load" table in the MySQL Bulk Loader Step Dialog window Actual Results: An error window is displayed, and only the first field is entered into the "Fields to load" table. {noformat} java.lang.ArrayIndexOutOfBoundsException: 0 at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings(MySQLBulkLoaderDialog.java:735) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.access$500(MySQLBulkLoaderDialog.java:86) at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog$6.handleEvent(MySQLBulkLoaderDialog.java:512) 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) {noformat}

    Pentaho BI Platform Tracking | 2 years ago | Kurt Mueller
    java.lang.ArrayIndexOutOfBoundsException: 0
  6. 0

    ArrayIndexOutOfBounds When Splitting String

    Stack Overflow | 4 years ago | n0shadow
    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

      1

      at org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings()
    2. org.pentaho.di
      MySQLBulkLoaderDialog$6.handleEvent
      1. org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.generateMappings(MySQLBulkLoaderDialog.java:724)
      2. org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog.access$500(MySQLBulkLoaderDialog.java:75)
      3. org.pentaho.di.ui.trans.steps.mysqlbulkloader.MySQLBulkLoaderDialog$6.handleEvent(MySQLBulkLoaderDialog.java:501)
      3 frames
    3. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      4 frames
    4. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1169)
      2. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6945)
      3. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:553)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
      1 frame