java.util.ConcurrentModificationException

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.

  • Concurrent execution of org.pentaho.di.core.row.RowMeta.cloneRow couse an error. This situation may happens when multiple copies of the SelectValues step is executed. The error is in the following code (one copy of step executes the first loop and another copy goes throw the next loop): {noformat} public Object[] cloneRow( Object[] objects, Object[] newObjects ) throws KettleValueException { if ( valuesThatNeedRealClone == null ) { valuesThatNeedRealClone = new ArrayList<Integer>(); for ( int i = 0; i < size(); i++ ) { ValueMetaInterface valueMeta = getValueMeta( i ); if ( valueMeta.requiresRealClone() ) { valuesThatNeedRealClone.add( i ); } } } for ( Integer i : valuesThatNeedRealClone ) { ValueMetaInterface valueMeta = getValueMeta( i ); newObjects[i] = valueMeta.cloneValueData( objects[i] ); } return newObjects; } {noformat} The stack trace is: {noformat} java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:403) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:384) at com.google.corp.corpdata.pantheon.kettle.trans.steps.selectvalues.SelectValues.getRow(SelectValues.java:28) at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:337) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:403) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:384) at com.google.corp.corpdata.pantheon.kettle.trans.steps.selectvalues.SelectValues.getRow(SelectValues.java:28) at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:337) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) {noformat}
    via by Pavel Utko,
  • Concurrent execution of org.pentaho.di.core.row.RowMeta.cloneRow couse an error. This situation may happens when multiple copies of the SelectValues step is executed. The error is in the following code (one copy of step executes the first loop and another copy goes throw the next loop): {noformat} public Object[] cloneRow( Object[] objects, Object[] newObjects ) throws KettleValueException { if ( valuesThatNeedRealClone == null ) { valuesThatNeedRealClone = new ArrayList<Integer>(); for ( int i = 0; i < size(); i++ ) { ValueMetaInterface valueMeta = getValueMeta( i ); if ( valueMeta.requiresRealClone() ) { valuesThatNeedRealClone.add( i ); } } } for ( Integer i : valuesThatNeedRealClone ) { ValueMetaInterface valueMeta = getValueMeta( i ); newObjects[i] = valueMeta.cloneValueData( objects[i] ); } return newObjects; } {noformat} The stack trace is: {noformat} java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:403) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:384) at com.google.corp.corpdata.pantheon.kettle.trans.steps.selectvalues.SelectValues.getRow(SelectValues.java:28) at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:337) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:403) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:384) at com.google.corp.corpdata.pantheon.kettle.trans.steps.selectvalues.SelectValues.getRow(SelectValues.java:28) at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:337) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745) {noformat}
    via by Pavel Utko,
  • StringUtils concurrency exception
    via by Unknown author,
    • java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:403) at org.pentaho.di.core.row.RowMeta.cloneRow(RowMeta.java:384) at com.google.corp.corpdata.pantheon.kettle.trans.steps.selectvalues.SelectValues.getRow(SelectValues.java:28) at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:337) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor1 times, last one,
    batwalrus76
    7 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    51 more bugmates