You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Al Byers <by...@automationgroups.com> on 2009/07/25 02:35:07 UTC

Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

I am unable to do a "run-install" on the latest version when trying to
connect to Mysql, but I can with Derby.

The error I get is:

java.lang.NullPointerException
    at
org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:509)
    at
org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)

turns out "helperName" is null for CurrencyDimension.

I see that there is a entitymodel_olap.xml file which contains
CurrencyDimension (it does not exist in entitymodel.xml), but my
entityengine.xml does not contain the line:

        <group-map group-name="org.ofbiz.olap"
datasource-name="localmysqlolap"/>

because I don't see an olap datasource for mysql.

So it looks like i need to find an olap datasource for mysql or find what
broke it so my previous entityengine.xml version does not work.
I see that the GenericDelegator getEntityFieldType and
getModelFieldTypeReader methods were changed recently - which is where the
null helpName is detected.

Any help on this would be appreciated.

Thanks,

-Al

Re: Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

Posted by Jacopo Cappellato <ja...@hotwaxmedia.com>.
or just leave the setting untouched:

<group-map group-name="org.ofbiz.olap" datasource- 
name="localderbyolap"/>

Jacopo

On Jul 25, 2009, at 3:13 AM, Brett Palmer wrote:

> Al,
>
> The easiest solution is to manually create an ofbizolap db in mysql
> and then run the build.
>
> Brett
>
> On 7/24/09, Al Byers <by...@automationgroups.com> wrote:
>> I am unable to do a "run-install" on the latest version when trying  
>> to
>> connect to Mysql, but I can with Derby.
>>
>> The error I get is:
>>
>> java.lang.NullPointerException
>>    at
>> org 
>> .ofbiz 
>> .entity.GenericDelegator.getEntityFieldType(GenericDelegator.java: 
>> 509)
>>    at
>> org 
>> .ofbiz 
>> .entity 
>> .model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
>>
>> turns out "helperName" is null for CurrencyDimension.
>>
>> I see that there is a entitymodel_olap.xml file which contains
>> CurrencyDimension (it does not exist in entitymodel.xml), but my
>> entityengine.xml does not contain the line:
>>
>>        <group-map group-name="org.ofbiz.olap"
>> datasource-name="localmysqlolap"/>
>>
>> because I don't see an olap datasource for mysql.
>>
>> So it looks like i need to find an olap datasource for mysql or  
>> find what
>> broke it so my previous entityengine.xml version does not work.
>> I see that the GenericDelegator getEntityFieldType and
>> getModelFieldTypeReader methods were changed recently - which is  
>> where the
>> null helpName is detected.
>>
>> Any help on this would be appreciated.
>>
>> Thanks,
>>
>> -Al
>>
>
> -- 
> Sent from my mobile device


Re: Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

Posted by Brett Palmer <br...@gmail.com>.
Al,

The easiest solution is to manually create an ofbizolap db in mysql
and then run the build.

Brett

On 7/24/09, Al Byers <by...@automationgroups.com> wrote:
> I am unable to do a "run-install" on the latest version when trying to
> connect to Mysql, but I can with Derby.
>
> The error I get is:
>
> java.lang.NullPointerException
>     at
> org.ofbiz.entity.GenericDelegator.getEntityFieldType(GenericDelegator.java:509)
>     at
> org.ofbiz.entity.model.ModelEntityChecker.checkEntities(ModelEntityChecker.java:101)
>
> turns out "helperName" is null for CurrencyDimension.
>
> I see that there is a entitymodel_olap.xml file which contains
> CurrencyDimension (it does not exist in entitymodel.xml), but my
> entityengine.xml does not contain the line:
>
>         <group-map group-name="org.ofbiz.olap"
> datasource-name="localmysqlolap"/>
>
> because I don't see an olap datasource for mysql.
>
> So it looks like i need to find an olap datasource for mysql or find what
> broke it so my previous entityengine.xml version does not work.
> I see that the GenericDelegator getEntityFieldType and
> getModelFieldTypeReader methods were changed recently - which is where the
> null helpName is detected.
>
> Any help on this would be appreciated.
>
> Thanks,
>
> -Al
>

-- 
Sent from my mobile device