From 2bfa3f4c38739a273234d31caa4e416321c24f07 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 15 Dec 2018 14:08:41 +0100 Subject: [PATCH] IDEMPIERE-3829 Scheduler not running - ( Failed to create new process instance ) in log / fix java.util.ConcurrentModificationException when running all housekeeping schedulers on start 13:51:15.942-----------> Scheduler.doWork: MProcess[53154-HouseKeeping] [173] java.util.ConcurrentModificationException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.base/java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:746) at org.compiere.model.MTable.get(MTable.java:112) at org.compiere.model.Query.(Query.java:134) at org.compiere.model.MScheduler.getParameters(MScheduler.java:165) --- org.adempiere.base/src/org/compiere/model/MTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MTable.java b/org.adempiere.base/src/org/compiere/model/MTable.java index 0f402e51ea..373f74d374 100644 --- a/org.adempiere.base/src/org/compiere/model/MTable.java +++ b/org.adempiere.base/src/org/compiere/model/MTable.java @@ -58,7 +58,7 @@ public class MTable extends X_AD_Table /** * */ - private static final long serialVersionUID = -8757836873040013402L; + private static final long serialVersionUID = 7527235342324308477L; public final static int MAX_OFFICIAL_ID = 999999; @@ -102,7 +102,7 @@ public class MTable extends X_AD_Table * @param tableName case insensitive table name * @return Table */ - public static MTable get (Properties ctx, String tableName) + public static synchronized MTable get (Properties ctx, String tableName) { if (tableName == null) return null;