java.lang.ArrayIndexOutOfBoundsException: 11

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.

  • I can only get the Database lookup step to get the data from the database (postgres 9.4) if i check the option "load all data from table". Otherwise, I only get NULL values for the String values and "0" for the Integer values. Another weird thing happens when I chain some Database lookup steps. At the fourth one, i get an ArrayOutOfBoundsException. On the other hand, when I check the load all data from table option, it does not happen anymore. A copy of the error log I get is below: {noformat} 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Erro inesperado 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : java.lang.ArrayIndexOutOfBoundsException: 11 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - at org.pentaho.di.trans.steps.databaselookup.DatabaseLookup.lookupValues(DatabaseLookup.java:207) 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - at org.pentaho.di.trans.steps.databaselookup.DatabaseLookup.processRow(DatabaseLookup.java:503) 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2015/11/13 15:36:31 - Database lookup - pmieducar.turma.0 - at java.lang.Thread.run(Thread.java:745) {noformat} I was using the 5.3 version of Kettle, but the 6.0 version still gave me this problem.
    via by Hyzandey Castro Alves,
  • [SCRIPT] java.lang.ArrayIndexOutOfBoundsException: 1
    via by Unknown author,
  • When using 'Out stream field' in String operations step, the following error occurs: ----------------------------------------------------------- String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : Unexpected error String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : java.lang.ArrayIndexOutOfBoundsException: 3 String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.steps.stringoperations.StringOperations.processRow(StringOperations.java:199) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.steps.stringoperations.StringOperations.processRow(StringOperations.java:297) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at java.lang.Thread.run(Thread.java:722) ----------------------------------------------------------- Steps to reproduce: * Create a new Transformation * Add step 'Generate Random Value' * Add step 'String operations' * Connect from step Random to step StringOp * Edit step Random and add two new fields with type String - call them "RndVal1" and "RndVal2" * Edit step String Operations: ** #1 RndVal1 .... (all default options) ** #2 RndVal2 -> New Out stream field called "NewField1" ... (all other default options) Save & Launch the transformation to get this error. Example: See attached transformation -------------------------------------------------------- Workaround: Don't use 'Out stream field option' but use other steps instead (for example add constant) -------------------------------------------------------- Proposed solution: see attached patch
    via by Martin W. Kirst,
  • There are 2 errors in 5.0 that did not occur in 4.4.0.0 with the Regex evaluation step when Replace previous fields is checked. First when the output fields do exist, the Regex Evaluation step gives the following error and fails so you cannot replace previous fields: 2013/09/20 08:59:14 - Regex Evaluation.0 - ERROR (version 5.0.0.1, build 1 from 2013-09-11_16-51-19 by buildguy) : java.lang.ArrayIndexOutOfBoundsException: 13 2013/09/20 08:59:14 - Regex Evaluation.0 - at org.pentaho.di.trans.steps.regexeval.RegexEval.processRow(RegexEval.java:145) 2013/09/20 08:59:14 - Regex Evaluation.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/09/20 08:59:14 - Regex Evaluation.0 - at java.lang.Thread.run(Thread.java:724) Second when the output fields do NOT exist, the Regex Evaluation steps gives the following error and fails. In 4.4.0.0 the output fields did not have to exist and you could still check the "Replace previous fields" option and the step would still work. 2013/09/20 08:43:20 - Regex Evaluation.0 - ERROR (version 5.0.0.1, build 1 from 2013-09-11_16-51-19 by buildguy) : Unexpected error 2013/09/20 08:43:20 - Regex Evaluation.0 - ERROR (version 5.0.0.1, build 1 from 2013-09-11_16-51-19 by buildguy) : org.pentaho.di.core.exception.KettleStepException: 2013/09/20 08:43:20 - Regex Evaluation.0 - org.pentaho.di.core.exception.KettleStepException: 2013/09/20 08:43:20 - Regex Evaluation.0 - We cannot find result field to replace [result] 2013/09/20 08:43:20 - Regex Evaluation.0 - 2013/09/20 08:43:20 - Regex Evaluation.0 - 2013/09/20 08:43:20 - Regex Evaluation.0 - We cannot find result field to replace [result] 2013/09/20 08:43:20 - Regex Evaluation.0 - 2013/09/20 08:43:20 - Regex Evaluation.0 - 2013/09/20 08:43:20 - Regex Evaluation.0 - at org.pentaho.di.trans.steps.regexeval.RegexEvalMeta.getFields(RegexEvalMeta.java:507) 2013/09/20 08:43:20 - Regex Evaluation.0 - at org.pentaho.di.trans.steps.regexeval.RegexEval.processRow(RegexEval.java:83) 2013/09/20 08:43:20 - Regex Evaluation.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/09/20 08:43:20 - Regex Evaluation.0 - at java.lang.Thread.run(Thread.java:724) 2013/09/20 08:43:20 - Regex Evaluation.0 - Caused by: org.pentaho.di.core.exception.KettleStepException: 2013/09/20 08:43:20 - Regex Evaluation.0 - We cannot find result field to replace [result] 2013/09/20 08:43:20 - Regex Evaluation.0 - 2013/09/20 08:43:20 - Regex Evaluation.0 - at org.pentaho.di.trans.steps.regexeval.RegexEvalMeta.getFields(RegexEvalMeta.java:473) 2013/09/20 08:43:20 - Regex Evaluation.0 - ... 3 more
    via by Chris Deptula,
  • When using 'Out stream field' in String operations step, the following error occurs: ----------------------------------------------------------- String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : Unexpected error String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : java.lang.ArrayIndexOutOfBoundsException: 3 String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.steps.stringoperations.StringOperations.processRow(StringOperations.java:199) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.steps.stringoperations.StringOperations.processRow(StringOperations.java:297) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40) String operations.0 - ERROR (version 4.2.0-stable, build 15748 from 2011-09-08 13.11.42 by buildguy) : at java.lang.Thread.run(Thread.java:722) ----------------------------------------------------------- Steps to reproduce: * Create a new Transformation * Add step 'Generate Random Value' * Add step 'String operations' * Connect from step Random to step StringOp * Edit step Random and add two new fields with type String - call them "RndVal1" and "RndVal2" * Edit step String Operations: ** #1 RndVal1 .... (all default options) ** #2 RndVal2 -> New Out stream field called "NewField1" ... (all other default options) Save & Launch the transformation to get this error. Example: See attached transformation -------------------------------------------------------- Workaround: Don't use 'Out stream field option' but use other steps instead (for example add constant) -------------------------------------------------------- Proposed solution: see attached patch
    via by Martin W. Kirst,
    • java.lang.ArrayIndexOutOfBoundsException: 11 at org.pentaho.di.trans.steps.databaselookup.DatabaseLookup.lookupValues(DatabaseLookup.java:207) at org.pentaho.di.trans.steps.databaselookup.DatabaseLookup.processRow(DatabaseLookup.java:503) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.