Entity Types are not cached - but static array

Description

When installing a 2pack that creates an entity type - I noticed that a server restart is required - I tested installing the kanbanboard plugin from apache felix and trying to save a record in control access threw this exception:

16:09:42.722===========> GridTable.dataSave: Persistency Issue - KDB_KanbanBoardControlAccess: null [102] java.lang.NullPointerException at org.adempiere.base.DefaultModelFactory.getClass(DefaultModelFactory.java:127) at org.adempiere.base.DefaultModelFactory.getPO(DefaultModelFactory.java:250) at org.compiere.model.MTable.getPO(MTable.java:383) at org.compiere.model.GridTable.dataSavePO(GridTable.java:2132)

Cause is the static array of entity types.

I tihnk that array must be moved better to a standard cache instance that is cleared with the normal cache reset.

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Priority

Created October 28, 2014 at 3:21 PM
Updated December 9, 2014 at 7:55 PM
Resolved October 29, 2014 at 4:00 PM