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.<init>(Query.java:134)
	at org.compiere.model.MScheduler.getParameters(MScheduler.java:165)
This commit is contained in:
Carlos Ruiz 2018-12-15 14:08:41 +01:00
parent 84a340ca00
commit 2bfa3f4c38
1 changed files with 2 additions and 2 deletions

View File

@ -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;