Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

byersa
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

Brett
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 <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with latest revision - CurrencyDimension - getModelFieldTypeReader

Jacopo Cappellato-4
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 <[hidden email]> 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