I've been trying to add the legacydb delegator instructed in https://cwiki.apache.org/confluence/display/OFBIZ/Handling+of+External+data but keep getting a nullPointerException error when this.getModelFieldTypeReader(entity) is called at line 539 of GenericDelegator.java. The exeption occurs for the fields that are supposed to be used for the legacydb delegator. The problem seems to be that the default delegator knows about the entities that are supposed to be handled by the legacydb delegator.

Can anyone tell me what I might be missing?

I created this delegator in entityengine.xml:
<delegator name="legacydb" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
        <group-map group-name="org.legacydb" datasource-name="localmssql"/>
    </delegator>

I also created the entitygroup_olap.xml file with records for each entity as follows:
    <entity-group group="org.legacydb" entity="ApprovedsuppliersV2" />

I have these entity resources in the hot-deploy/legacydb/ofbiz-component.xml file: <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> <entity-resource type="group" reader-name="main" loader="main" location="entitydef/entitygroup_olap.xml"/>



Reply via email to