java.lang.RuntimeException

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.

  • ConcurrentModificationException
    via GitHub by sytolk
    ,
  • GitHub comment 419#201831731
    via GitHub by nathanjones
    ,
  • 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,
    • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274) at java.util.concurrent.FutureTask.setException(FutureTask.java:125) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) at java.lang.Thread.run(Thread.java:1019) Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796) at java.util.HashMap$EntryIterator.next(HashMap.java:833) at java.util.HashMap$EntryIterator.next(HashMap.java:831) at java.util.AbstractMap.putAll(AbstractMap.java:381) at java.util.HashMap.putAll(HashMap.java:512) at com.google.analytics.tracking.android.GoogleTracker$SimpleModel.getKeysAndValues(GoogleTracker.java:391) at com.google.analytics.tracking.android.GoogleTracker.send(GoogleTracker.java:73) at com.google.analytics.tracking.android.GoogleTracker.trackTiming(GoogleTracker.java:145) at pl.company.myapp.home.MainLongueAdapter$1.doInBackground(MainLongueAdapter.java:73) at pl.company.myapp.home.MainLongueAdapter$1.doInBackground(MainLongueAdapter.java:1) at android.os.AsyncTask$2.call(AsyncTask.java:185) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) ... 4 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    iridiciridic
    2 times, last one,
    franky lifranky li
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AkshayAkshay
    6 times, last one,
    13 more bugmates