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.

  • A job that has been running successfully on 5.0.2, when migrated to 5.4.0.4 started to fail: {code} 2016/03/27 04:40:09 - Get PDI Batch Id 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - ERROR (version 5.4.0.4-149, build 1 from 2015-09-17 09.58.29 by buildguy) : Unexpected error 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - ERROR (version 5.4.0.4-149, build 1 from 2015-09-17 09.58.29 by buildguy) : java.util.ConcurrentModificationException 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.util.Hashtable$Enumerator.next(Hashtable.java:1167) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.util.HashMap.putAll(HashMap.java:642) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.util.StringUtil.environmentSubstitute(StringUtil.java:238) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.variables.Variables.environmentSubstitute(Variables.java:163) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.base.AbstractMeta.environmentSubstitute(AbstractMeta.java:1182) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.DatabaseMeta.environmentSubstitute(DatabaseMeta.java:2566) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.DatabaseMeta.getQuotedSchemaTableCombination(DatabaseMeta.java:1538) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.Database.getInsertStatement(Database.java:1210) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:237) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:118) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.lang.Thread.run(Thread.java:745) {code} The job is being executed concurrently. When I checked closer it seemed that Variables.java does not synchronise access to the Hashtable used for storing variables. When I have included synchronisation - all worked OK. Attaching the patch for version 5.4.0.4-R.
    via by Evgeny Minkevich,
  • A job that has been running successfully on 5.0.2, when migrated to 5.4.0.4 started to fail: {code} 2016/03/27 04:40:09 - Get PDI Batch Id 2.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - ERROR (version 5.4.0.4-149, build 1 from 2015-09-17 09.58.29 by buildguy) : Unexpected error 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - ERROR (version 5.4.0.4-149, build 1 from 2015-09-17 09.58.29 by buildguy) : java.util.ConcurrentModificationException 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.util.Hashtable$Enumerator.next(Hashtable.java:1167) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.util.HashMap.putAll(HashMap.java:642) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.util.StringUtil.environmentSubstitute(StringUtil.java:238) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.variables.Variables.environmentSubstitute(Variables.java:163) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.base.AbstractMeta.environmentSubstitute(AbstractMeta.java:1182) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.DatabaseMeta.environmentSubstitute(DatabaseMeta.java:2566) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.DatabaseMeta.getQuotedSchemaTableCombination(DatabaseMeta.java:1538) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.core.database.Database.getInsertStatement(Database.java:1210) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:237) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:118) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2016/03/27 04:40:09 - Load SKI to loadP_SKI_Cust_au.0 - at java.lang.Thread.run(Thread.java:745) {code} The job is being executed concurrently. When I checked closer it seemed that Variables.java does not synchronise access to the Hashtable used for storing variables. When I have included synchronisation - all worked OK. Attaching the patch for version 5.4.0.4-R.
    via by Evgeny Minkevich,
  • ConcurrentModificationException
    via GitHub by sytolk
    ,
  • GitHub comment 419#201831731
    via GitHub by nathanjones
    ,
    • java.util.ConcurrentModificationException at java.util.Hashtable$Enumerator.next(Hashtable.java:1167) at java.util.HashMap.putAll(HashMap.java:642) at org.pentaho.di.core.util.StringUtil.environmentSubstitute(StringUtil.java:238) at org.pentaho.di.core.variables.Variables.environmentSubstitute(Variables.java:163) at org.pentaho.di.base.AbstractMeta.environmentSubstitute(AbstractMeta.java:1182) at org.pentaho.di.core.database.DatabaseMeta.environmentSubstitute(DatabaseMeta.java:2566) at org.pentaho.di.core.database.DatabaseMeta.getQuotedSchemaTableCombination(DatabaseMeta.java:1538) at org.pentaho.di.core.database.Database.getInsertStatement(Database.java:1210) at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:237) at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:118) 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,
    Unknown visitor1 times, last one,