When we call KTR using the following java code
TransMeta transMeta =
new TransMeta(ktr.getFileName());//TransMeta transMeta = new TransMeta("abcd.ktr");
Trans trans =
new
Trans(transMeta);trans.setParameterValue("INCMG_FILE_KY", ktr.getInFileKey()+"");trans.setParameterValue("CLIENT_ID", ktr.getClientId());trans.setParameterValue("PROCESS_PRIORITY", "1");
trans.execute(
null); // You can pass arguments instead of null.
trans.waitUntilFinished();


***Receving the below error intermittently. I have tried using 4.3.1 and 4.2.0. Any help ? Is kettle multi-thread safe?

java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at org.pentaho.di.core.plugins.PluginRegistry.init(PluginRegistry.java:402)
at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:80)
at org.pentaho.di.core.KettleEnvironment.init(KettleEnvironment.java:43)
at com.ssc.etl.ETLProcess.runTransformation(ETLProcess.java:48)
at com.ssc.run.KTRThread.run(KTRThread.java:37)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)