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.

  • 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}
    via by Kurt Mueller,
  • 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}
    via by Kurt Mueller,
  • 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)
    via by dan kern,
  • 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)
    via by dan kern,
    • 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)
    No Bugmate found.